How to use VirGL in virt-manager for virtualized GPU acceleration?

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 driver

Host Side:

  • Linux kernel with KVM enabled
  • QEMU
  • The GPU hardware and drivers

link

In the Display Spice section of the VM’s config, tick OpenGL and set Listen type to None. In the Video Virtio section, use Virtio and tick 3D acceleration.

1 Like

thanks! Works great!

aaand I am running COSMIC in a VM :smiley: