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



Hey,

On Thu, Mar 31, 2016 at 03:14:48PM +0400, John Frankish wrote:
$ 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?

Is libvirtd running as root?
You could also try running 'virsh -c qemu:///session list --all'
as a regular user before starting Boxes as there are known issue with
some libvirt versions with automatic startup of the user libvirtd.

libvirtd isn't running at all - shouldn't gnome-boxes start it (and create a
gnome-boxes pool) via dbus?

user (session) libvirtd is going to be started automatically when needed, which is
what seems to not work on your setup. The pool creation goes through
libvirt as well, it might not have worked on your setup because of these
libvirtd issuse...
system libvirtd is usually started automatically at boot time (or maybe
on demand through systemd socket activation).


$ libvirtd -d -p /var/run/libvirt/libvirt-sock-ro

You usually have 2 libvirtd instances running on a system, one running
as root listening on /var/run/libvirt/libvirt-sock and on
/var/run/libvirt/libvirt-sock-ro, and one running as a regular user and
listening on $XDG_RUNTIME_DIR/libvirt/libvirt-sock
You should not need to use -p, it should do the right thing (and
libvirtd --help will tell you which sockets it's going to use).


$ virsh -c qemu:///session.list

This is virsh -c qemu:///session list, not virsh -c qemu:///session.list
(no '.' between session and list). If this virsh command is not working,
I would not expect GNOME Boxes to work either. 

Christophe

Attachment: signature.asc
Description: PGP signature



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