On Wed, Aug 05, 2009 at 02:51:14PM +0200, Harald Dunkel wrote: > Hi folks, > > I would like to avoid running the virtual hosts with UID=0. > But if I try to create a new virtual machine without being > root, then it fails with > > % name=Lenny_amd64 > % kvmdir=/local/kvm > % mkdir -p $kvmdir/$name > % qemu-img create -f qcow2 $kvmdir/$name/hda.qcow2 32G > Formatting '/local/kvm/Lenny_amd64/hda.qcow2', fmt=qcow2, size=33554432 kB > % virt-install --connect=qemu:///session -n $name -r 1024 -vcpus=1 -f The 'qemu:///session' URIs do not have any ability to use bridge/tap based networking modes I'm afraid. qemu:///system is the only option for that kind of networking at this point in time. With the release of libvirt 0.7.0, you can configure qemu:///system to run the QEMU instances as a non-root user id. ie, libvirtd runs as root, but qemu can be told to run as 'qemu'. That is probably the best bet for the case you have. NB by default it uses root, you have to give are argument to configure at build time to change it, or edit /etc/libvirt/qemu.conf Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list