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