libvirt/kvm networking

Kent Tenney ktenney at
Fri Jun 19 16:40:08 UTC 2009

I don't know if this applies to you, but it took me some time
to figure out how to start the vm instance correctly.

"Before you start a new VM for the first time, you must define it from
its xml file (located in the /etc/libvirt/qemu/ directory):
define /etc/libvirt/qemu/vm1.xml"

Are you doing
$ sudo virsh

virsh # define /etc/libvirt/qemu/<myvm>.xml

virsh # start <myvm>


$ ssh me@<myvm addr>
$ vncviewer



2009/6/19 Aljosa Mohorovic <aljosa.mohorovic at>:
> file attached are my current settings, guest machine has no connectivity.
> my guess is that /etc/libvirt/qemu/networks/default.xml is wrong but i
> have no idea if  i should use br0 or virbr0  or something else.
> howto on for jaunty uses static ip where i'm
> trying to create environment for my laptop and pc at work which all
> use dhcp (don't know if there is a difference) and there is no mention
> of /etc/libvirt/qemu/networks/default.xml.
> has description and examples of
> config but i'm not sure what should i use.
> i've tried several combinations with no success.
> i've created image with this command:
> /usr/bin/vmbuilder kvm ubuntu --suite jaunty --flavour virtual
> --rootsize=5000 --mem 1024 --mirror
> --libvirt qemu:///system -d
> my_new_vm --hostname my_hostname --bridge=br0
> any idea what i'm doing wrong?
> Aljosa Mohorovic
> --
> ubuntu-server mailing list
> ubuntu-server at
> More info:

More information about the ubuntu-server mailing list