[libvirt-users] manage VM without root access?

Martin Kletzander mkletzan at redhat.com
Mon Mar 19 08:05:42 UTC 2012


On 03/19/2012 07:21 AM, Jun Koi wrote:
> hi,
> 
> with libvirt, is it possible to manage VMs (using virsh, for e.g)
> without root access?

The daemon is usually running as root, but virsh can do everything as a
user also.

> if that is possible, how can i do that?

I'm using *local* connection to libvirt with these settings:

/etc/libvirt/libvirt.conf:
uri_default = "qemu:///system"

/etc/libvirt/libvirtd.conf

unix_sock_group = "libvirt"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"
unix_sock_dir = "/var/run/libvirt"

And my user is in the "libvirt" group. You can also use other
authentication methods as someone mentioned before me.




More information about the libvirt-users mailing list