You are not logged in.
Pages: 1
Hello there,
I am having a problem with setting up libvirt (gui manager) with qemu/kvm. I installed all the required packages, as I understood it:
pacman -Q |egrep 'qemu|libvirt|virt'
libvirt 2.2.0-1
libvirt-glib 0.2.3-1
libvirt-python 2.1.0-1
qemu 2.7.0-2
virt-install 1.4.0-2
virt-manager 1.4.0-2It seems that needed modules are loaded:
lsmod | egrep 'kvm|virtio'
virtio 16384 0
kvm_intel 184320 0
kvm 507904 1 kvm_intel
irqbypass 16384 1 kvmHowever I had to insert virtio manually (shouldn't be a problem?)
Required services (libvirtd, libvirt-guests, virtlogd) start with no problem. The default auth via PAM works as well. However, when I try connect to qemu hypervisor following error appears:
virsh -c qemu:///session
error: failed to connect to the hypervisor
error: no connection driver available for qemu:///sessionThere isn't much in the log:
systemctl -l status libvirtd
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; vendor preset: disabled)
Active: active (running) since Sun 2016-09-11 17:47:39 CEST; 2h 16min ago
Docs: man:libvirtd(8)
http://libvirt.org
Main PID: 743 (libvirtd)
Tasks: 18 (limit: 4915)
CGroup: /system.slice/libvirtd.service
├─743 /usr/bin/libvirtd
├─823 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt
└─824 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt
Sep 11 17:47:40 mateusz dnsmasq[823]: using nameserver ::1#53
Sep 11 17:47:40 mateusz dnsmasq[823]: read /etc/hosts - 2 addresses
Sep 11 17:47:40 mateusz dnsmasq[823]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Sep 11 17:47:40 mateusz dnsmasq-dhcp[823]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Sep 11 17:49:19 mateusz libvirtd[743]: this function is not supported by the connection driver: virConnectGetCPUModelNames
Sep 11 17:49:19 mateusz libvirtd[743]: this function is not supported by the connection driver: virConnectNumOfStoragePools
Sep 11 17:49:27 mateusz libvirtd[743]: no connection driver available for qemu:///system
Sep 11 17:49:27 mateusz libvirtd[743]: End of file while reading data: Input/output error
Sep 11 20:03:08 mateusz libvirtd[743]: no connection driver available for qemu:///session
Sep 11 20:03:08 mateusz libvirtd[743]: End of file while reading data: Input/output errorI can start qemu manually. I don't know what else should I check, googling didn't get me more clues. I'd appreciate any help.
[EDIT] I didn't look into logs before, relaying only on systemctl status, where libvirtd message was somewhat misleading.
Sep 11 17:47:39 mateusz libvirtd[743]: failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so libboost_thread.so.1.61.0: cannot open shared object file: No such file or directory
Sep 11 17:47:39 mateusz libvirtd[743]: failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so: undefined symbol: virStorageFileCreate
Sep 11 17:47:40 mateusz libvirtd[743]: internal error: Failed to find path for dmidecode binaryI turns out I had libboost_thread.so in 1.60.0 version. Quick update, on top of my weekly one, solved that problem, so I guess should've done more work before posting. Sorry for that.
Last edited by mat_sz (2016-09-12 19:37:25)
Offline
Pages: 1