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] Can't get guest domain network working!

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Can't get guest domain network working!
From: Donglai Zhang <dlzhangster@xxxxxxxxx>
Date: Wed, 17 Jun 2009 15:16:24 +0930
Delivery-date: Tue, 16 Jun 2009 22:47:15 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Kt5XPkdEYVPFQSjcDQJO6dTIbiCr/kxqDDPssVMoCvw=; b=sCQRLetbcIBuTtEDCh2BYi0LBfGwfYlV8E82ZniLqsIfwdqoXdm956V8x3P3Z018F2 l7Cur3Bj4qlIjpP+WmNvkv7FESpm9DC1ulEm621T9VIoIYTmcvWJsQVKf2YXCvsIUTvl 3/Xu9vIPLJIgoH+rXchfnVNHP7XMRAc9ji+Uk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=X1yRpo/X8st/7Zfy2BQHqFM15gLhBtTnc3qFzTDlUd1zGeNxM1Gs8ww4y6AcJw5h4N NEbSibbGcv3WWF3YzA9WPGirg1geOr/laevNlC5uLMzCxN+Chpkg1RKgJ1GOdp9+gEer Hx66g84Dv4c10NYhodyTRTDmJBtB+zT/crJ2E=
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi, there:

I have installed xen(2.6.18.8-xen) and had
successfully started domU guests (one or two) from dom0. However, I am
not able to start the network for domU machines.

Following is the information from my linux box.
After the it is started:
$ ifconfig
eth1      Link encap:Ethernet  HWaddr 00:A0:C9:D6:65:DB
          inet addr:XXX.XXX.10.133  Bcast:XXX.XXX.10.255
Mask:255.255.255.0
          inet6 addr: fe80::2a0:c9ff:fed6:65db/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:196716 errors:0 dropped:0 overruns:0
frame:1
          TX packets:82301 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:91072761 (86.8 MiB)  TX bytes:15558692
(14.8 MiB)
          Interrupt:18

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:6440 errors:0 dropped:0 overruns:0
frame:0
          TX packets:6440 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:55534272 (52.9 MiB)  TX bytes:55534272
(52.9 MiB)

////////////Start xend
#xend start
Nothing to flush.
Waiting for peth1 to negotiate link.
# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:A0:C9:D6:65:DB
          inet addr:XXX.XXX.10.133  Bcast:XXX.XXX.10.255
Mask:255.255.255.0
          inet6 addr: fe80::2a0:c9ff:fed6:65db/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0
frame:0
          TX packets:40 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3277 (3.2 KiB)  TX bytes:10992 (10.7 KiB)

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:6440 errors:0 dropped:0 overruns:0
frame:0
          TX packets:6440 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:55534272 (52.9 MiB)  TX bytes:55534272
(52.9 MiB)

peth1     Link encap:Ethernet  HWaddr 00:A0:C9:D6:65:DB
          inet6 addr: fe80::2a0:c9ff:fed6:65db/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:196767 errors:0 dropped:0 overruns:0
frame:1
          TX packets:82358 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:91080163 (86.8 MiB)  TX bytes:15574125
(14.8 MiB)
          Interrupt:18

/////////////The peth1 and eth1 are all available and check the bridge...
# brctl show
bridge name     bridge id               STP enabled     interfaces
eth1            8000.00a0c9d665db       no              peth1

///////////The name of the bridge is "eth1" and interface "peth1" has been added to the bridge.

///////////Configure the configuration file for the guest domain

************The content of XmGuest.conf*********
kernel = "/boot/vmlinuz-2.6.18.8-xen-U"
memory = 256
name = "ExampleDomain03"
vif = [ 'mac=00:16:3e:31:48:5f', 'bridge=eth1' ]  ###The bridge is given name eth1
disk = [ 'phy:sda7,sda7,w' ]
dhcp="off"
ip='XXX.XXX.10.134'
netmask="255.255.255.0"
gateway="XXX.XXX.10.99" #The gateway is the same as the one used by dom0 network.
hostname="helloworld"

root = "/dev/sda7 ro"
extra = "4"
extra = "xencons=tty"
***************XmGuest.conf finish here**********************

//////Copy /lib/modules/2.6.18.8-xen/ directory to the guest domain disk. There are some exceptions
//////from guest domain if I don't do this.

cp -r /lib/modules/2.6.18.8-xen/ /mnt/ubuntu_sda7/lib/modues/

//////Now start the guest domain

# xm create XmGuest.conf
Using config file "./XmGuest.conf".
Started domain ExampleDomain03 (id=11)

///////show xm domains
# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   510     2     r-----   4443.7
ExampleDomain03                             11   256     1     -b----      9.3

/////////check bridge from dom0
# brctl show
bridge name     bridge id               STP enabled     interfaces
eth1            8000.00a0c9d665db       no              vif11.1
                                                                               vif11.0
                                                                               peth1
///////////The bridge has bounded the guest interface.

////////////On domU guest

dlzhang@dlzhang-desktop:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:31:48:5f 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28617 (28.6 KB)  TX bytes:1368 (1.3 KB)

eth1      Link encap:Ethernet  HWaddr 00:16:3e:08:da:f6 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:363 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28085 (28.0 KB)  TX bytes:1368 (1.3 KB)

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)

///////////The network has not been configured successfully.
///////////The eth0 Hardware address is set, but not the ip address 

dlzhang@dlzhang-desktop:/etc$ ping XXX.XXX.10.133
connect: Network is unreachable


I have tried with different linux box and different domU, all got the similar problem.
 

Would you please give some hints about what might go wrong?


Thanks a lot !

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