Hide Forgot
Description of problem: Not able to run virt-manager. Error: Virtual Machine Manager Connection Failure Unable to open a connection to the libvirt management daemon. Libvirt URI is: qemu:///system Verify that: - The 'libvirtd' daemon has been started authentication failed Details: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1055, in _try_open None], flags) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 107, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: authentication failed Note- - libvirtd is ruuning as a daemon. - If you launch virt-manager from root cli, this problem is not encountered. - virt-manager does not ask a user for authentication/higher previledges at the time of running, if launched from gui as a normal user. - I tested with selinux=permissive & selinux=disabled and that does not have any effect. Version-Release number of selected component (if applicable): 0.8.7, Fedora 15 updated till date. How reproducible: Just launch Virt Manager from gui as a normal user and the error results. Steps to Reproduce: 1. Launch the virt-manager from GUI as normal user and the error results. 2. On the other hand launch as root from cli & virt-manager connects to libvirtd & lists the virtual machines in the system. 3. Actual results: Virt-Manager cannot connect to lib-virtd and gives error. However, if you launch the same software from cli as root, which is an incorrect practice, it launches just fine. This is so even with selinux disabled. Error: Virtual Machine Manager Connection Failure Unable to open a connection to the libvirt management daemon. Libvirt URI is: qemu:///system Verify that: - The 'libvirtd' daemon has been started authentication failed Details: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1055, in _try_open None], flags) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 107, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: authentication failed Expected results: Virt-Manager to ask for password for root/higher permissions, then connect to libvirtd and list the virtual machines in the system. Additional info:
What desktop environment are you using (gnome, kde, other)? Are you doing this over VNC or SSH to the virt host? What's the output of ps axwww | grep -i polkit
Closing as WORKSFORME. Please reopen if you can still reproduce, and provide the info from Comment #1, as well as the the output of the following command as a regular user from a bash prompt on the affected machine: pkcheck --action-id org.libvirt.unix.manage --allow-user-interaction --process $BASHPID