Hi,
I have installed Silverblue 32 on a Macbook. I am not able to use GNOME Boxes flatpak and need assistance.
There was a related discussion here. I decided to open a new topic assuming necrobumping is considered bad manners here (discussions) too just like in forums. It is not clear if the OP got his issue resolved. I have same error as the OP there (looks to me so).
I installed GNOME Boxes (GB) flatpak from flathub, first as a ‘user’. Clicking on the icon did nothing. Running it from terminal gave a bunch of errors and the GUI would show ‘Boxes cannot access virtualization backend’ error. I was (am) not sure if it makes any difference installing flatpaks as ‘system’ or as ‘user’ but removed GB and installed with ‘system’ profile anyway. However the issue remains same.
I will post below info that were asked in the linked discussion and can post any further info required.
Here is my rpm-ostree status
$ rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora:fedora/32/x86_64/silverblue
Version: 32.20200523.0 (2020-05-23T01:05:36Z)
BaseCommit: 873c33f885f73513c171aff3d1226c4f2e7882793fafbf8d345efeb907432843
GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0
LayeredPackages: broadcom-wl fedora-workstation-repositories gnome-boxes rpmfusion-free-release-tainted
rpmfusion-nonfree-release-tainted
LocalPackages: rpmfusion-nonfree-release-32-1.noarch rpmfusion-free-release-32-1.noarch
ostree://fedora:fedora/32/x86_64/silverblue
Version: 32.20200523.0 (2020-05-23T01:05:36Z)
BaseCommit: 873c33f885f73513c171aff3d1226c4f2e7882793fafbf8d345efeb907432843
GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0
LayeredPackages: broadcom-wl fedora-workstation-repositories rpmfusion-free-release-tainted rpmfusion-nonfree-release-tainted
LocalPackages: rpmfusion-nonfree-release-32-1.noarch rpmfusion-free-release-32-1.noarch
ostree://fedora:fedora/32/x86_64/silverblue
Version: 32.20200523.0 (2020-05-23T01:05:36Z)
BaseCommit: 873c33f885f73513c171aff3d1226c4f2e7882793fafbf8d345efeb907432843
GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0
LayeredPackages: broadcom-wl rpmfusion-free-release-tainted rpmfusion-nonfree-release-tainted
LocalPackages: rpmfusion-nonfree-release-32-1.noarch rpmfusion-free-release-32-1.noarch
Pinned: yes
Here is info on info on GB flatpak installed.
$ flatpak info org.gnome.Boxes
GNOME Boxes - Simple remote and virtual machines
ID: org.gnome.Boxes
Ref: app/org.gnome.Boxes/x86_64/stable
Arch: x86_64
Branch: stable
Version: 3.36.3
License: LGPL-2.1+
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 679.9 MB
Runtime: org.gnome.Platform/x86_64/3.36
Sdk: org.gnome.Sdk/x86_64/3.36
Commit: 34f4ff9f00168c44c83576ac8723c2c27a5c52bd9d055d733e94b05dd593c916
Parent: 84230e8e28f0173243255e709fe834e622be5e3c306fa7afc6f27914c6e8a4df
Subject: Build Tracker 2.3 branch to benefit from post-release fixes (b4267c79)
Date: 2020-05-12 16:18:28 +0000
Here is error I get when I run GB from terminal.
$ flatpak run org.gnome.Boxes
(gnome-boxes:2): Gtk-WARNING **: 22:31:48.798: GtkFlowBox with a model will ignore sort and filter functions
(gnome-boxes:2): Gtk-WARNING **: 22:31:48.800: GtkListBox with a model will ignore sort and filter functions
(gnome-boxes:2): Gtk-WARNING **: 22:31:49.153: GtkOverlay does not have a child property called passthrough
(gnome-boxes:2): Tracker-CRITICAL **: 22:31:49.187: tracker_sparql_cursor_real_get_boolean: assertion '_tmp0_ == TRACKER_SPARQL_VALUE_TYPE_BOOLEAN' failed
(gnome-boxes:2): GLib-GIO-CRITICAL **: 22:31:49.707: g_file_new_for_uri: assertion 'uri != NULL' failed
(gnome-boxes:2): GLib-GIO-CRITICAL **: 22:31:49.707: g_file_get_basename: assertion 'G_IS_FILE (file)' failed
(gnome-boxes:2): GLib-GIO-CRITICAL **: 22:31:49.720: g_file_new_for_uri: assertion 'uri != NULL' failed
(gnome-boxes:2): GLib-GIO-CRITICAL **: 22:31:49.720: g_file_get_basename: assertion 'G_IS_FILE (file)' failed
Error setting up default broker: Unable to open qemu+unix:///session: Failed to connect socket to '/run/user/1001/libvirt/libvirt-sock': No such file or directory
(gnome-boxes:2): Boxes-WARNING **: 22:31:54.422: (../src/app.vala:459):boxes_app_setup_default_source_co: runtime check failed: (default_connection != null)
I checked for /dev/kvm and it exists with following permissions.
crw-rw-rw-. 1 root kvm 10, 232 May 24 11:50 /dev/kvm
The CPU has virtualization support (I always used VirtualBox on this laptop). The command grep -wo -e vmx -e svm /proc/cpuinfo
shows a bunch of ‘vmx’.
There was also suggestion to include ones user in libvirt group. However, my /etc/group is surprisingly sparse. It just has following.
$ cat /etc/group
root:x:0:
wheel:x:10:saivinoba,sai
saivinoba:x:1000:
sai:x:1001:
I still added libvirt:x:983:sai
as suggested but it does no favor (even after a reboot).
As suggested by @znmeb, I installed GB using rpm-ostree and GB launches and works fine. So, the issue is only with the flatpak app. @feborges, you mentioned in the linked discussion that,
Some users seem to have permission issues with access to /dev/kvm, so you might want to check whether your user has r+w access to it, just like @billyb stated above.
Can you please help how to fix the permissions issue if that is the case? I have /dev/kvm and posted its permissions above.
Thanks in advance for any help.