Description of problem: I am not able to use virt-manager in F16. It seems unable to connect to libvirtd. Version-Release number of selected component (if applicable): virt-manager-0.9.0-5.fc16.noarch libvirt-0.9.4-1.fc16.i686 How reproducible: 100% Steps to Reproduce: 1. start virt-manager in F16 after reboot Actual results: Dialog appears: 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: authentication failed Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1146, in _open_thread self.vmm = self._try_open() File "/usr/share/virt-manager/virtManager/connection.py", line 1130, in _try_open flags) File "/usr/lib/python2.7/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: authentication failed: authentication failed Expected results: no error
Does running virt-manager as root work? How about virsh --connect qemu:///system as root and non-root?
[sgtpepper@tardis ~]$ virsh --connect qemu:///system error: Cannot recv data: Connection reset by peer error: failed to connect to the hypervisor [sgtpepper@tardis ~]$ sudo service libvirtd status libvirtd.service - LSB: daemon for libvirt virtualization API Loaded: loaded (/etc/rc.d/init.d/libvirtd) Active: active (running) since Thu, 13 Oct 2011 12:39:33 -0300; 35s ago Process: 4089 ExecStop=/etc/rc.d/init.d/libvirtd stop (code=exited, status=0/SUCCESS) Process: 4095 ExecStart=/etc/rc.d/init.d/libvirtd start (code=exited, status=0/SUCCESS) Main PID: 4101 (libvirtd) CGroup: name=systemd:/system/libvirtd.service ├ 1159 /usr/sbin/dnsmasq --strict-order --bind-interfaces... ├ 1193 libvirtd --daemon ├ 4101 libvirtd --daemon └ 4150 libvirtd --daemon Just in case, I checked /etc/hosts and added my hostname to localhost, but its still not working
By the way: [sgtpepper@tardis ~]$ rpm -q libvirt libvirt-0.9.6-2.fc16.x86_64 [sgtpepper@tardis ~]$ rpm -q virt-manager virt-manager-0.9.0-6.fc16.noarch [sgtpepper@tardis ~]$
I think I found out what's going on in my case. Virt-manager (or libvirt, I'm not sure) calls /usr/bin/python /usr/share/PackageKit/helpers/yum/yumBackend.py search-name installed qemu-system-x86 to check if qemu is installed, if you're running yum (installing other packages this might create a timeout). So basically don't start libvirt or virt-manager while running yum, until this is confirmed...
Sorry this is long working for me now. So I don't know what other people are seeing.
Perhaps I add that I usually always reboot after installing @virtualization to get dmsmasq, etc working: I could probably avoid that with some commandline but rebooting is probably still faster. :)
Hmm, doesn't sound like anyone is still actively having this problem, so closing WORKSFORME
Hey guys! Well, actually I still do have this problem in my fully patched FC16 -.- And btw Cole: YES, it works as root, but not as my own user. It works fine for my colleague on FC16, he started with a FC15 before upgrading. I started with 11 or 12... maybe that's the issue... The Python traceback is the same for me (just in German), but has different line numbers (maybe a newer virt-manager version - 0.9.1, 2012-02-14 16:20:50.212+0000: 29817: info : libvirt version: 0.9.6, package: 4.fc16 (Fedora Project, 2011-12-19-20:27:37, x86-01.phx2.fedoraproject.org)). Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1185, in _open_thread self.vmm = self._try_open() File "/usr/share/virt-manager/virtManager/connection.py", line 1167, in _try_open flags) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Authentifikation gescheitert: Authentifikation gescheitert BTW: I installed everything necessary using 'yum install @virtualization', too. Cheers!
Lars, at a bash prompt, what's the output of this command: pkcheck --action-id org.libvirt.unix.manage --allow-user-interaction --process $BASHPID
Dear Cole, thanks for your quick reply! It shows nothing (not even an empty line) for root, but it shows "Not authorized." for my own user. Okay, see, this is related to this policykit authentication agent stuff... Right? Found something related at #524732 and #750530... Maybe its because my agent cannot start because I use the Gnome 2 fallback desktop via NX client -.- I will try getting the agent running... Or do you have an idea for me how to manage this? THX
Cole, I figured out that this must be related to that fallback display stuff. Indeed, I can start virt-manager properly with my own user using default Gnome 3 desktop. He correctly asks me for my password and then can connect to libvirt management deamon and show me my running VMs... It just does not work using Gnome 2 fallback using NX... Mmh, at least I have a workaround now and don't need to start it as root... but I still have to be at the server console directly, unfortunately -.-