Problem Description:
Fedora COSMIC Spin 42 beta doesn’t work inside of a VM using Boxes due to halting during boot sequence. Boot logs:
How to replicate:
Download Fedora COSMIC Spin 42 beta iso
Create VM in Boxes using the downloaded iso
When booting, select the first option to just boot into the live image
Cosmic requires hardware acceleration . I have been unable to get it working in a VM as well, but works on real hardware.
2 Likes
It works.
You need to follow the steps to enable VirGL for the VM
In the virt-manager configs, set these in the graphics and display options
enable OpenGL
Set Listen Type to “none”
enable 3D acceleration
You can set these as default too, a lot of linux distros support it
I am on an Intel i7 with an integrated GPU. In theory this should support VirGL.
virglrenderer is preinstalled on Fedora by default, at least on the atomic images.
How can I check if it works by default, is it enabled by default when creating a VM in virt-manager?
This is how you would enable it manually when building QEMU
./configure ... --enable-opengl --enable-virglrenderer ...
The software stack that makes up VirGL support is:
Guest side:
MESA OpenGL driver
Linux kernel VirtIO GPU…
1 Like
boredsquirrel:
enable 3D acceleration
Fortunately I only had to do this by going into preferences for the VM and toggling “3D Acceleration”. Now boots to desktop, but cursor and keyboard isn’t being passed through and volume control is locked displaying 40%. Keyboard works just fine for selecting boot options… it’s just desktop that seems to be having issues. Don’t see this issue with other VMs on Boxes like Silverblue or Kinoite
Don’t see a OpenGL related config in the VM config file exposed by Boxes.
Edit: Looks like config is already properly set:
<graphics type="spice">
<listen type="none"/>
<image compression="off"/>
<gl enable="yes"/>
I also has a double cursor with Kubuntu today. On a Fedora KDE VM it works