[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] How to get internet work in guest OS?


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "ashutosh mehra" <mehra.ashutosh@xxxxxxxxx>
  • Date: Wed, 3 Oct 2007 18:32:14 +0530
  • Delivery-date: Wed, 03 Oct 2007 06:03:06 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LZX3n8EWXKuvj+Tyf2HdzAlWMeSTmHr0G1mHo5hpVZ/EwnUUuDOHTaYn2cGMWyzvpZoDPYffU95mu/SLuPohlFxgIexEZ3f0Tyw3TsbHRCfNITODnURktRpJWTTERXwz5Txu7jfbGLMPXrJ7W/+oU2fP88YLenVg92q+9EApdw0=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I have installed xen-3.1.0. Host OS is Ubuntu(feisty) distribution. Over it, I installed Ubuntu(edgy) as guest OS. Problem is that I am not able to access internet from guest OS although from host it is accessible.

My configuration file for guest OS is:
kernel = "/boot/vmlinuz-2.6.18-xen"
ramdisk = "/boot/initrd.img-2.6.18-xen"
memory = 128
name = "baseimage"
vif = ['bridge=xenbr0']
disk = ['file:/xen-images/guest_base.img,hda1,w','file:/xen-images/guest_base-swap.img,hda2,w']
ip = "192.168.12.101"
netmask = " 255.255.0.0"
gateway = "192.168.12.18"
hostname = "baseimage"
root = "/dev/hda1 ro"
extra = "4"


These are the contents of /etc/network/interfaces file in guest OS:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
        address 192.168.12.101
        netmask 255.255.0.0
        broadcast 192.168.255.255
        gateway 192.168.3.254
        dns-nameservers 192.168.3.254

Host OS has one interface eth0 having following configuration:
address 192.168.12.18
netmask 255.255.0.0
gateway 192.168.3.254


I wanted to know whether host OS is going to act as gateway for guest OS or the guest OS is also going to use same gateway as host OS?
Are there any links describing nitty-girtty of the configuration file for guest OS?

Thanks & Regards
Ashutosh





_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.