WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] How to get internet work in guest OS?
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=TOTnjzSNgIHGKOMyHrzjvZ8gXbTNTzd4QgR6/WMEHIk=; b=jhrcfNAFBCJH2ClAkKSyRd8cNetyqxuLdidiG1BUbOToYHI2CrADs2E1iFXZ1pVH7dfaDpZC3V0AAottOFG9YxuBZJbmbs1oE+l1HNT8gf7JWOJ1Y/sHUR95If/Ttpo+7QjVwtmuIWwpf9Zu6qe4NgSd6sedsKqFClkkWgWFHrY=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] How to get internet work in guest OS?, ashutosh mehra <=