I read a lot of tutorials (or at least try to be) but none is able to explain well how to configure networks for xen host.

my Dom0 has two interfaces eth0 (real interfaces) and virbr0 (I guess was created by bridge-utils )

  • eth0 #is static
  • virbr0 #i dont know where is the conf

Tutorials only indicate:

  1. Edit /etc/xen/xend-config.sxp and append this lines

    (network-script network-bridge)
    (vif-script vif-bridge)
  2. setup vif in the domU.cfg file

    vif = ['ip ='] # this is the ip i want
  3. setup interface on Guest /etc/network/interface the guest is a Ubuntu amd 12.04 setup with debootstrap utility

    auto eth0
    iface eth0 inet static

but i can't access to DomU network.

aditional info

$ brctl show
bridge name     bridge id               STP enabled     interfaces
virbr0          8000.000000000000       yes

Ubuntu 12.04.1 LTS x86_64
CPU: Xeon 5150 @ 2.66Ghz (x2)
RAM: 20GB (Dom0 1024M)

Note: Xen was installated with sudo apt-get install xen-utils-4.1 xenwatch xen-tools xen-utils-common virtinst virt-viewer virt-manager bridge-utils

solution works only with xl toolstack

I configured my network as follows and seems to work well (apparently)

auto eth0 xenbr0

iface eth0 inet manual

iface xenbr0 inet static
 bridge_ports eth0
 bridge_stop on
 bridge_maxwait 1
  • Old question. the xenbr0 posted at the end will only work with xl. I've never set the IP of the domu in the cfg file but always inside. Let the guest set its IP. – Matt Apr 28 '14 at 0:25

For me this looks, that you used virt-manager to add the network setup. The virt-manager uses by default `' network for VMs.

You might want to change the network configuration from the virt-managers menu: Edit->ConnectionDetails and then virtual-networks to fit to your needs.

| improve this answer | |
  • I dont have GUI. is Ubuntu Server – rkmax Jan 8 '13 at 18:08
  • What means 'I dont have GUI'? As you wrote you installed virt-manager. This is the GUI. – Andreas Florath Jan 8 '13 at 19:27
  • yeah. sure was the tutorial where I read it, I thought it was a package for CLI – rkmax Jan 8 '13 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.