85.8. Configuration of a bridged network with domU and Abilis

  1. Open the file /etc/xen/xend-config.sxp and make sure that the parameter network-script corresponds to:

    (network-script 'network-bridge-xhn0')

  2. Add at the end of /etc/network/interfaces the following lines:

    auto xenbr0

    iface xenbr0 inet manual

    Then remove all the lines refering to xhn0 and add:

    auto xhn0

    iface xhn0 inet manual

  3. Create the file /etc/xen/scripts/network-bridge-xhn0 and write the following lines into it:

    #!/bin/bash
    /etc/xen/scripts/network-bridge "$@" netdev=eth0 bridge=xenbr0
    /sbin/ifconfig xhn0 up
    /usr/sbin/brctl addif xenbr0 xhn0

    and make it executable using the command chmod +x /etc/xen/scripts/network-bridge-xhn0.

  4. Reboot the machine. At the next startup eth0 and xhn0 will be linked together.

  5. Configure the domU associating a vif interface to the bridge xenbr0, by adding bridge=xenbr0 to the vif options. Example:

    vif = [ 'bridge=xenbr0,mac=00:06:3E:1A:93:C3' ]

  6. Start the virtual machine:

    xm create <virtual_machine_name>

  7. You can see the interfaces that are linked by the bridge executing the command brctl show.

  8. To connect the machines with the physical network you need to assign IP addresses that are in the same network class.