The password prompting is via libvirt's polkit integration. The idea is that we want the applications to run as a regular unprivileged user (running GUI apps as root is considered a no-no), and only use the root authentication for talking to system libvirt instance. Most workarounds suggest installing a polkit rule to allow your user, or a particular user group, to access libvirt without needing to enter the root password.
In libvirt v1.2.16 we finally added official support for this (and backported to Fedora22+). The group is predictably called 'libvirt'. This matches polkit rules that debian and suse were already shipping too.
So just add your user to the 'libvirt' group and enjoy passwordless virt-manager usage:
$ usermod --append --groups libvirt `whoami`
Thanks for this. I use virt-manager quite a lot and the authentication mechanism was becoming a bit of a pain.
ReplyDelete