OpenGL replacement for KVM?

Everything about X, Gnome, KDE, ... and everything running on it

OpenGL replacement for KVM?

Postby kerryhall » 2020-10-14 05:31

I recently upgraded from Debian 8 to Debian 10, but in the process noticed that VirtualBox is no longer supported.

I managed to convert the VDI for my windows test VM over to qcow2, and it seems to work.

However, there is a small issue: OpenGL no longer works.

I don't need anything fast, I just need OpenGL windows to not render either a black or white screen.

Specifically, one of my main use cases here is confirming that I can open Reaper projects in Windows, with all the plugins working correctly. (Cross platform audio projects)

The plugin in question is Dragonfly Reverb, and unfortunately the GUI uses OpenGL for rendering.

So the plugin loads, but the GUI is simply a white window.

(I have a few other misc use cases that require OpenGL also, so I would like to try and solve this problem for the general case)

I'm guessing I either have to: 1. Set up some sort of hardware passthrough for the video card or 2. Install some sort of software OpenGL driver for windows.

Is 1 even possible with KVM? Seems like the preferable option at least.

I didn't see any reference to OpenGL here:
Posts: 201
Joined: 2008-08-19 11:06

Re: OpenGL replacement for KVM?

Postby Head_on_a_Stick » 2020-10-14 15:20

It is possible to enable OpenGL under QEMU/KVM by using the virtio video drivers, for example:
Code: Select all
kvm -m 4G -drive file=/path/to/image.qcow2,format=qcow2,cache=none,if=virtio -soundhw hda -vga virtio -display gtk,gl=on
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: OpenGL replacement for KVM?

Postby CwF » 2020-10-14 16:55

^ That is for Linux guest only.
I don't know the status of virtio/qxl for newer windows, but I don't think it's there yet.
An additional gpu is the way to go with kvm. Quadro drivers will accelerate the 3D in a QXL driven vm on the host gpu if you'd prefer not use the direct output of the necessary extra gpu, it's slow still. 'Looking Glass' may mature, a similar render back to the host from a secondary gpu approach. MxGPU with amdgpu could kick but but it's vaporware in FOSS, and needs SR-IOV. There is no equivalent 'kvm-guest-graphics-additions.deb' as with that other virtualizer.
Posts: 790
Joined: 2018-06-20 15:16

Re: OpenGL replacement for KVM?

Postby kerryhall » 2020-10-21 00:08

Is there a solution for Linux host + Windows guest?
Posts: 201
Joined: 2008-08-19 11:06

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 13 guests