Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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've created a bridge on the host with a method similar to the one here:

However, to link the guest machine to the bridge, the doc suggests something like this in the libvirt config file:

 <interface type='bridge'>
    <source bridge='br0'/>
    <mac address='00:16:3e:1a:b3:4a'/>

However, I do not want to use libvirt. How can this be achieved by specifying options to the command line on the creation of the guest via the 'kvm' command?

share|improve this question
up vote 2 down vote accepted

When you create an image with virt-install, it tells libvirt to start kvm with:

kvm [more options] -net nic,macaddr=54:52:00:52:1c:7c,vlan=0,model=virtio -net tap,fd=7,script=,vlan=0,ifname=vnet0

I created a post about creating VM's with KVM and libvirt. I just use that blog to remember stuff, but perhaps it is of use to you.

share|improve this answer
+1: Just replaced 3 bookmarks I'd had for the same reason with one to your blog post. Very helpful. – nedm Jul 25 '10 at 18:33
+1: Great! Thanks for sharing. I don't know how long I've looked for exactly this information... – Anders Hansson Sep 5 '10 at 13:09

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.