Gnome Boxes doesn't work

(gnome-boxes:148694): Gtk-WARNING **: 02:36:03.544: GtkFlowBox with a model will ignore sort and filter functions

(gnome-boxes:148694): Gtk-WARNING **: 02:36:03.545: GtkListBox with a model will ignore sort and filter functions

(gnome-boxes:148694): Boxes-WARNING **: 02:36:03.910: libvirt-machine.vala:275: Failed to connection to system libvirt: Unable to open qemu+unix:///system: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory

(gnome-boxes:148694): Boxes-WARNING **: 02:36:03.965: libvirt-machine.vala:83: Failed to disable 3D Acceleration

(gnome-boxes:148694): Boxes-WARNING **: 02:36:03.968: libvirt-broker.vala:70: Failed to update domain 'manjaro-gnom-3': Failed to set domain configuration: XML error: Invalid PCI address 0000:04:00.0. slot must be >= 1

(gnome-boxes:148694): Boxes-CRITICAL **: 02:36:04.003: boxes_vm_importer_get_source_media: assertion 'self != NULL' failed
Segmentation fault (core dumped)

This, after the latest Stable updates. I cannot figure out what’s the issue. libvirt is installed…

Hey,

You will need to change/configure the SocketMode and SocketGroup for libvirt.
Same issue as discussed and apparently solved here:
https://bbs.archlinux.org/viewtopic.php?id=256258

I will have a look, thanks!

I didn’t have the time to look into this, but today I had and I could not figure out the solution from the arch forum.

It seems that this is the solution:

“”""

I was able to get the correct permissions using systemd drop-in files.

To create new drop-in for socket service libvirtd.socket and libvirtd-ro.socket:

systemctl edit unit libvirtd.socket
systemctl edit unit libvirtd-ro.socket

Override or set the SocketMode and SocketGroup for each service

#
[Socket]
SocketMode=0660
SocketGroup=libvirt
#

The new permissions are set when the services are restarted.

srw-rw----  1 root libvirt   0 Jun  3 18:56 libvirt-sock
srw-rw----  1 root libvirt   0 Jun  3 18:56 libvirt-sock-ro

“”""

but despite going thourgh that all, I still get this:

[tio@tio-pc ~]$ gnome-boxes

(gnome-boxes:8271): Gtk-WARNING **: 17:43:30.679: GtkFlowBox with a model will ignore sort and filter functions

(gnome-boxes:8271): Gtk-WARNING **: 17:43:30.680: GtkListBox with a model will ignore sort and filter functions

(gnome-boxes:8271): GLib-GIO-CRITICAL **: 17:43:31.503: g_file_new_for_uri: assertion 'uri != NULL' failed

(gnome-boxes:8271): GLib-GIO-CRITICAL **: 17:43:31.503: g_file_get_basename: assertion 'G_IS_FILE (file)' failed

(gnome-boxes:8271): GLib-GIO-CRITICAL **: 17:43:31.512: g_file_new_for_uri: assertion 'uri != NULL' failed

(gnome-boxes:8271): GLib-GIO-CRITICAL **: 17:43:31.512: g_file_get_basename: assertion 'G_IS_FILE (file)' failed

(gnome-boxes:8271): Boxes-WARNING **: 17:43:31.968: libvirt-machine.vala:83: Failed to disable 3D Acceleration

(gnome-boxes:8271): Boxes-WARNING **: 17:43:31.971: libvirt-broker.vala:66: Failed to update domain 'manjaro-gnom-3': Failed to set domain configuration: XML error: Invalid PCI address 0000:04:00.0. slot must be >= 1

(gnome-boxes:8271): Boxes-CRITICAL **: 17:43:31.972: boxes_vm_importer_get_source_media: assertion 'self != NULL' failed
Segmentation fault (core dumped)