Q:

Create bridged networking in KVM without libvirt

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?

A:

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.

