[et-mgmt-tools] virt-manager - bridged networking with unpriviledged user?

Emre Erenoglu erenoglu at gmail.com
Sun Jun 14 15:18:30 UTC 2009


Hi,

I'm trying to use virt-manager with my account instead of raising its
privilate to root level when asked by PolicyKit. Everything works OK, except
the bridged networking part.

I would like to setup bridged networking without needing root privilate. For
this, a service script creates tap interfaces from virtual0 up to virtualN
at system bootup, all owned by group "kvm",  and all bridged to bridge
interface bridge0. Bridge0, as you might expect, also contains the physical
ethernet interface, which is eth0. Thus, everything is ready, a guest
process having kvm group membership just needs to bind itself to one of
those virtualX interfaces. Here's an example output of brctl show :

bridge name     bridge id               STP enabled     interfaces
bridge0         8000.0018f39d6efc       no              eth0
                                                        virtual0
                                                        virtual1
                                                        virtual2

A typical qemu line, with manual MAC address assignment and virtio support
would contain the following network related options to enable this way of
working:

-net nic,vlan=0,macaddr=ee:ee:ee:ee:ee:10,model=virtio -net
tap,vlan=0,ifname=virtual1,script=no,downscript=no

This way, qemu-kvm launches, opens the virtual1 interface and assigns it to
the guest. virtual1 is already bridged to the physical interface, thus
everything runs OK.

 How can I accomplish this with virt-manager? Would it be possible by
hand-manipulating the XML config file? Would it be worth adding to
virt-manager?

Thanks beforehand for any comment,

Emre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20090614/eb0d64f5/attachment.htm>


More information about the et-mgmt-tools mailing list