Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've created a bridge on the host with a method similar to the one here:

http://wiki.libvirt.org/page/FAQ#Why_doesn.27t_libvirt_just_auto_configure_a_regular_network_bridge.3F

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'/>
 </interface>

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.