Gnome Boxes and SELinux

Hello everyone

I can’t enable virtuaization in gnome boxes on Fedora 42 x86. I’m running gnome-checks to troubleshoot the problem but it responds with:

 gnome-boxes --checks
• The CPU is capable of virtualization: yes
• The KVM module is loaded: yes
• Libvirt KVM guest available: yes
• Boxes storage pool available: yes
• The SELinux context is default: no
    Your SELinux context looks incorrect, you can try to fix it by running:
    restorecon -r `~/.config/gnome-boxes`...

Unfortunately, when I try to run restorecon -rv with the provided paths, I’m getting:

<file name> not reset as customized by admin to unconfined_u:object_r:svirt_image_t:s0:c449,c563

Of course, I can try to enforce the new context with restorecon -Fr, but gnome boxes or the OS resets it again before the next try.

Thank you in advance!

Everything but SELinux context looks fine.
I have a similar output on F43 and it works as expected.
This looks like a false alarm you can safely ignore.

In my case the guest system is super slow, I’m pretty sure the virtualization is off

Check this:

sudo virt-host-validate qemu

This may also be related to:

  • The capabilities of your video adapter and driver.
    Try to toggle the 3D acceleration setting in the VM’s preferences.

  • The state of your physical disk and filesystem.
    Check your disk’s SMART and test the filesystem’s performance.

  • The amount of allocated and free memory for the host and VM.
    Not enough free memory may result in swapping.

1 Like