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

Re: [Xen-users] Need help with networking in DomU's

To: datto@xxxxxxxxxxx
Subject: Re: [Xen-users] Need help with networking in DomU's
From: <datto@xxxxxxxxxxx>
Date: Mon, 16 Jan 2006 17:48:40 -0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Jan 2006 01:56:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
Sensitivity: Normal
Additional info:
ifconfig inside the DomU comes up looking like this below initially after DomU 
startup:

eth0      Link encap:Ethernet  HWaddr 00:16:3E:6E:57:3E
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

If I give it an ifconfig eth0 10.1.1.215 netmask 255.255.255.0 followed by an 
ifconfig eth0 up it'll take the information and a new ifconfig afterward will 
show the new IP and netmask but it still doesn't get me out through the bridge 
and to the network and the Internet.

Any help appreciated.

Datto
 
---- datto@xxxxxxxxxxx wrote: 
> Fedora Core 4 Dom0 and CenOS 4.1 DomU as outlined similarly at Mark Foster's 
> wiki which doesn't seem to be up at the moment.
> 
> uname -a on Dom0
> Linux w2knt412 2.6.12.6-xen3_2.1_fc4 #1 SMP Sun Dec 4 11:19:39 PST 2005 i686 
> i686 i386 GNU/Linux
> 
> Dom0 comes up and is on the network and I can VNC into Dom0 from other 
> computers on the network just fine. However, my DomU's startup and seem to be 
> useable from the DomU console but I can't get their networking to go out to 
> the world. What changes do I need to make to which config files to get my 
> DomU's to go out to the network and to the Internet? Thanks.
> 
> Datto
> 
> Dom0 ifconfig results
> eth0      Link encap:Ethernet  HWaddr 00:50:DA:5D:7E:E0
>           inet addr:10.1.1.152  Bcast:10.1.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::250:daff:fe5d:7ee0/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:242514 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:212056 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:20021338 (19.0 MiB)  TX bytes:55288081 (52.7 MiB)
>           Interrupt:5 Base address:0xd800
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:86 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:12077 (11.7 KiB)  TX bytes:12077 (11.7 KiB)
> 
> xenbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
>           inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:9 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:252 (252.0 b)  TX bytes:378 (378.0 b)
> 
> DomU config file
> kernel = "/boot/vmlinuz-2.6.12.6-xen3_2.1_fc4domU"
> memory = 256
> name = "cos41-03"
> nics = 1
> extra="selinux=0"
> vif=['mac=00:29:5E:18:98:FC, bridge=xenbr0']
> ip="10.1.1.215"
> netmask="255.255.255.0"
> gateway="10.1.1.15"
> # dhcp = "dhcp"
> hostname = "412cos4103"
> disk = [ 
> 'file:/opt/xen/domains/vm04/diskimage,sdb7,w','file:/opt/xen/domains/vm04/swapimage,sdb8,w'
>  ]
> root = "/dev/sdb7 ro"
> 
> DomU /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=412cos4103
> 
> 
> DomU /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=10.1.1.215
> NETMASK=255.255.255.0
> GATEWAY=10.1.1.15
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

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