You are not logged in.
Hi,
I have started up virt-manager and for some reason it fails to connect to libvirt with the following error:
Unable to connect to libvirt.
no connection driver available for qemu:///system
Libvirt URI is: qemu:///system
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 904, in _do_open
self._backend.open(self._do_creds_password)
File "/usr/share/virt-manager/virtinst/connection.py", line 148, in open
open_flags)
File "/usr/lib/python2.7/site-packages/libvirt.py", line 105, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: no connection driver available for qemu:///system
I have tried restarting my PC but it has made no difference. Starting VMs with QEMU from the command-line goes without issue, however. For example, running:
$ qemu-system-x86_64 -enable-kvm -m 1GB -vga qxl -cdrom ReactOS-0.4.2.iso
starts a ReactOS VM just fine if started in my ~/VirtualBox VMs/ISOs folder which contains my ReactOS ISO. The output of:
systemctl status libvirtd
is:
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2016-08-20 13:50:55 AEST; 11h ago
Docs: man:libvirtd(8)
http://libvirt.org
Main PID: 1084 (libvirtd)
CGroup: /system.slice/libvirtd.service
├─1084 /usr/bin/libvirtd
├─1442 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
└─1443 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
Aug 21 00:37:48 fusion809-pc libvirtd[1084]: no connection driver available for qemu:///system
Aug 21 00:37:48 fusion809-pc libvirtd[1084]: End of file while reading data: Input/output error
Aug 21 00:37:48 fusion809-pc libvirtd[1084]: no connection driver available for xen:///
Aug 21 00:37:48 fusion809-pc libvirtd[1084]: End of file while reading data: Input/output error
Aug 21 00:40:32 fusion809-pc libvirtd[1084]: no connection driver available for qemu:///system
Aug 21 00:40:32 fusion809-pc libvirtd[1084]: End of file while reading data: Input/output error
Aug 21 00:40:37 fusion809-pc libvirtd[1084]: no connection driver available for qemu:///system
Aug 21 00:40:37 fusion809-pc libvirtd[1084]: End of file while reading data: Input/output error
Aug 21 00:40:51 fusion809-pc libvirtd[1084]: no connection driver available for qemu:///system
Aug 21 00:40:51 fusion809-pc libvirtd[1084]: End of file while reading data: Input/output error
Any ideas of how to fix this problem?
Thanks for your time,
Brenton
Last edited by fusion809 (2016-08-20 14:52:34)
Offline
For me, downgrading libvirtd worked. Just putting this out there for people having this problem, (because I searched a little too long for my taste..)
It means libvirtd was wrongfully compiled, the configure part specifying the wrong driver or something (source: https://wiki.libvirt.org/page/Failed_to … hypervisor )
But I'm just guessing here.
Offline
Although this is the same error message as @fusion809 was seeing, this probably should have been a separate post since this topic is 2 years old.
It looks like you are correct @eggz, libvirt may have had a build issue. There is a bug against libvirt 4.6.0-2: https://bugs.archlinux.org/task/59697?p … ng=libvirt.
Downgrading worked for me as well. I ran these commands. (If you don't have libvirt in your cache, you will need to download it from the Arch archives.)
pacman -U /var/cache/pacman/pkg/libvirt-4.6.0-1-x86_64.pkg.tar.xz
systemctl restart libvirtd
Offline