I have tried accessing libvirt (with virt-manager, or with virsh), and there are often issues with permissions. I found out from this blog post that it is possible to add a Polkit rule to allow a regular user to access the libvirt daemon.

So I was wondering, is there a good reason why libvirt defaults to requiring root privileges? I don't know how polkit works, so perhaps this is less secure than it seems, or maybe there is some other drawback to doing things this way.


Access to the system libvirtd is most likely root-equivalent in your default configuration. libvirt does not require root access by default though, if you use qemu:///session.

E.g. https://bugzilla.redhat.com/show_bug.cgi?id=1284447


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.