Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Xen-enabled host and Libvirtd running on a machine. The LAN (on eth0) is, and the host has as its main IP address.

Now what I want to do is to create a domU instance (using virt-install) and have it on that physical network, giving an IP address like

I have no bridges except one NAT bridge I was able to set up with libvirt:

root@host:~/xen# brctl show
bridge name bridge id       STP enabled interfaces
nat     8000.feffffffffff   yes         vif13.0

The nat network works perfectly. Is there a way to create a bridged network using libvirt alone? Can someone please provide me the XML for it?

share|improve this question

You don't need to create the bridge network in libvirt. You create the bridge using the OS tools (bridge-utils for RHEL).

Here is how you can do that in RHEL/Fedora.

Then, when you create the VM, tell virt-install (or virt-manager) to use the bridge you just created.

IMO, if you need to use XEN, use Citrix XenServer, as it has tools that make things easier for managing multiple VMs. Otherwise use KVM, it is going to be the better supported option from Redhat.

share|improve this answer
I know it is possible with the OS tools. But I'm writing a management software and haven't access to the OS. So I'm really dependent on Libvirt. – Daniel Nov 21 '11 at 16:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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