problem with setting up Xen networking

Markus Schönhaber ubuntu-users at
Mon Feb 1 08:40:23 UTC 2010

01.02.2010 02:36, Amedee Van Gasse:

> 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.

> /etc/network/interfaces:
> auto lo
> iface lo inet loopback
> allow-hotplug eth0
> iface eth0 inet dhcp
> auto dummy0
> iface dummy0 inet static
>          address
>          broadcast
>          netmask
> /etc/xen/xend-config.sxp:
> (network-script network-bridge)

As you've already noticed, the network-bridge script will rename eth0 to
peth0 and create a bridge device named 'eth0'.
Moreover, it's the dummy interface you want to be used for networking.
So you should call network-bridge with netdev=dummy0.
But I remember dimly that I once tried something similar without success.

> (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']

That's the wrong bridge device. Don't set bridge 'bridge=...' at all
unless you use your own scripts to create a bridge with a different name
than the default Xen-scripts expect.

If you don't want to dig deeply into the Xen networking scripts, you're
probably better off by assigning eth0 a fixed IP and using that as
to-be-bridged interface.


More information about the ubuntu-users mailing list