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'/>
</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?
From serverfault
Charles Darke
-
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.
nedm : +1: Just replaced 3 bookmarks I'd had for the same reason with one to your blog post. Very helpful.Subtwo : +1: Great! Thanks for sharing. I don't know how long I've looked for exactly this information...From Halfgaar
0 comments:
Post a Comment