RE: gnome-boxes-3.16.2 - "Libvirt KVM guest available: no"



..fails with an error message when the kvm and kvm-intel modules are 
not loaded

$ sudo modprobe kvm-intel
$ lsmod | grep kvm
kvm_intel          131072  0 
kvm                   221184  1 kvm_intel

 ..and the qemu vm is significantly faster when using "-enable-kvm"

Ok thanks :)


How does gnome-boxes detect the kvm modules? Is there a way to get 
debug output?

G_MESSAGES_DEBUG=all should give some debug output.
Otherwise you can try your luck with strace, maybe it will show something.
Have you checked if the libvirt QEMU driver and is installed
(/usr/lib64/libvirt/connection-driver/libvirt_driver_qemu.so) ?
It's packaged separately on my Fedora in libvirt-daemon-driver-qemu.
There is also a libvirt-daemon-kvm, but this one seems to be more of an
empty
virtual packages with dependencies on all the packages libvirt needs in
such
an environment.

I have:

/usr/local/lib/libvirt/connection-driver/libvirt_driver_qemu.so
/usr/local/lib/libvirt-qemu.so
/usr/local/lib/libvirt-qemu.so.0
/usr/local/lib/libvirt-qemu.so.0.1003.2

..but not libvirt-daemon-kvm

$ G_MESSAGES_DEBUG=all gnome-boxes --checks
(gnome-boxes:28121): Boxes-DEBUG: util-app.vala:248:
check_cpu_vt_capability: yes
(gnome-boxes:28121): Boxes-DEBUG: util-app.vala:268:
check_module_kvm_loaded: yes
...

$ G_MESSAGES_DEBUG=all gnome-boxes
(gnome-boxes:28147): Gtk-DEBUG: Connecting to session manager
(gnome-boxes:28147): Libvirt.GLib-DEBUG: Error: Failed to connect socket to
'/var/run/libvirt/libvirt-sock-ro': No such file or directory
(gnome-boxes:28147): Boxes-DEBUG: wizard-source.vala:285: Unable to open
qemu+unix:///system: Failed to connect socket to
'/var/run/libvirt/libvirt-sock-ro': No such file or directory
(gnome-boxes:28147): Boxes-DEBUG: app.vala:396: Failed to query
'/home/tc/.cache/gnome-boxes/sources/QEMU Session': Error when getting
information for file '/home/tc/.cache/gnome-boxes/sources/QEMU Session': No
such file or directory. Assuming it doesn't exist.
...
Full output in the attachment, but it looks like the problem lies with the
lack of /var/run/libvirt/libvirt-sock-ro?

Regards
John

Attachment: gnome-boxes_log.tar.gz
Description: GNU Zip compressed data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]