problem with setting up Xen networking

Amedee Van Gasse amedee-ubuntu at amedee.be
Mon Feb 1 01:36:24 UTC 2010


Hi peeps,

I've been trying to set up bridged networking with Xen, and I've been 
working so many hours on it that I need a frash pair of eyes. It's 
probably a minor detail... but I can't find it.
The problem is that I have no network connection between Dom0 and DomU, 
for example I can't ping between them. No iptables are used. It's 
probably something with the bridge.


In Dom0:

/etc/modules:
loop
dummy


/etc/network/interfaces:
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

auto dummy0
iface dummy0 inet static
         address 192.168.2.1
         broadcast 192.168.2.255
         netmask 255.255.255.0


/etc/xen/xend-config.sxp:
(network-script network-bridge)
(vif-script vif-bridge)


/etc/xen/mx1:
#  -*- mode: python; -*-
root = "/dev/hda1 ro"
kernel = "/boot/vmlinuz-2.6.26-2-xen-686"
ramdisk = "/boot/initrd.img-2.6.26-2-xen-686"
memory = 128
name = "mx1"
vif = [' bridge=xenbr0']
disk = 
['phy:/dev/mapper/castor-mx1,hda1,w','phy:/dev/mapper/castor-swap_2,hda2,w']
ip="192.168.2.101"
netmask="255.255.255.0"
gateway="192.168.2.1"
hostname = "mx1"
root = "/dev/hda1 ro"
#extra = "3"
extra = "console=hvc0 xencons=tty"


ifconfig
dummy0    Link encap:Ethernet  HWaddr 16:72:f4:16:b3:7a
           inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
           inet6 addr: fe80::1472:f4ff:fe16:b37a/64 Scope:Link
           UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 B)  TX bytes:602 (602.0 B)

eth0      Link encap:Ethernet  HWaddr 00:30:48:db:31:00
           inet addr:10.0.0.12  Bcast:10.0.0.255  Mask:255.255.255.0
           inet6 addr: fe80::230:48ff:fedb:3100/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:380 errors:0 dropped:0 overruns:0 frame:0
           TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:31099 (30.3 KiB)  TX bytes:45640 (44.5 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: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)

peth0     Link encap:Ethernet  HWaddr 00:30:48:db:31:00
           inet6 addr: fe80::230:48ff:fedb:3100/64 Scope:Link
           UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
           RX packets:384 errors:0 dropped:0 overruns:0 frame:0
           TX packets:287 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:37207 (36.3 KiB)  TX bytes:47546 (46.4 KiB)
           Interrupt:16 Base address:0x4000

vif2.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
           inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
           UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:87 errors:0 dropped:57 overruns:0 carrier:0
           collisions:0 txqueuelen:32
           RX bytes:0 (0.0 B)  TX bytes:12253 (11.9 KiB)


In DomU:

/etc/network/interfaces:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.2.101
netmask 255.255.255.0
gateway 192.168.2.1


ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:1a:87:15
           inet addr:192.168.2.101  Bcast:192.168.2.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:72 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:10427 (10.1 KiB)  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)



Just ask if I missed something.




More information about the ubuntu-users mailing list