upvote
WSL2 already allows you to use your own GPU driver as a paravirtualized GPU over open source Mesa d3d12 driver. You get quite good OpenGL performance with that.

There are projects like this https://github.com/jamesstringer90/Easy-GPU-PV that you can use to setup a Hyper-V machine to use the same paravirtualization.

reply
> Tere are projects like this https://github.com/jamesstringer90/Easy-GPU-PV that you can use to setup a Hyper-V machine to use the same paravirtualization.

> Automatically Installs Windows to the VM

This seems to be focused on Windows guests. I need this for Linux guests.

May be when Hyper-V will make this usable out of the box for any guests, I'll take a look. And if it's something shareable, may be VirtualBox should pick that up.

reply
deleted
reply
You can pass a GPU to the vm if you have more than one. GPU vendors have been gating GPU virtualization for data centers only. Or you can run X on windows like wslg does it.
reply
I need something similar to what qemu/kvm can do with virgl and venus, i.e. pass through graphics call to the same GPU that's used by the host, not pass whole GPU with SR-IOV or PCIe passthrough. So far I haven't found anything like that which actually works.

I'm not using X, I need a normal KDE Wayland session.

reply