[one-users] virsh permission problem over CentOS 6.2
jan horacek
jahor.jhr.cz at gmail.com
Tue Feb 21 01:51:58 PST 2012
Hello,
> [oneadmin at nubacesga-01-2 libvirt]$ virsh list
> error: Failed to reconnect to the hypervisor
> error: no valid connection
> error: Failed to connect socket to
> '@/srv/cloud/one/.libvirt/libvirt-sock': Connection refused
there are more ways to solve it, the one is to disable PolicyKit but
my preffered way is to have policy kit policy rule
https://github.com/jhrcz/opennebula-tm-gfs2clvm/blob/master/etc-polkit-1-localauthority-50-local.d/50-org.libvirt.unix.manage-opennebula.pkla
this makes it possible to run almost all operation under oneadmin user
and have it cleanly integrated by default system configuration.
Regards,
J.Horacek (aka jahor / jhrcz)
More information about the Users
mailing list