libvirt/kvm networking

Ante Karamatić ivoks at grad.hr
Wed Jun 17 16:53:03 UTC 2009


Aljosa Mohorovic wrote:

> - /etc/libvirt/qemu/networks/default.xml # default network config for libvirt
> - /etc/libvirt/qemu/ubuntu.xml # config for image created using vmbuilder
> so i could check what i'm doing wrong.
> 
> any help/comments appreciated.

Once you have configured bridge networking, you have to create
virtualized machines with switch '--bridge=br0'. IIRC, this is supported
only since 9.04 version. So, if you have 9.04, this would be
ubuntu-vm-builder example:

ubuntu-vm-builder kvm jaunty --rootsize=5000 --mem 1024 --user aljosa
--mirror http://hr.archive.ubuntu.com/ubuntu --libvirt qemu:///system -d
my_new_vm --hostname my_hostname --bridge=br0

If you are using older version, interface part of host xml should look
like this:

    <interface type='bridge'>
      <mac address='00:16:11:11:11:11'/>
      <source bridge='br0'/>
    </interface>

where mac address is generated by libvirt/kvm.




More information about the ubuntu-server mailing list