Ubuntu – Enabling hardware acceleration for windows 10 VM in qemu 2.11 on 18.04

3dgraphicshardware accelerationkvmqemu

I have a a machine with specs per below where one of my VM's is windows 10 in which I'm trying to run sketchup 2019, which requires hardware acceleration to be turned on, so I'm trying to figure out how to make that happen. I won't be using it for any huge modelling or all the time so if a simple solution exists that gives non-ideal performance, I can live with it. I have a number of other VM's running and everything working great, so I'm hoping not to have to make any major changes to my qemu setup.

MB – SM X10SLM+-F,
CPU – Xeon E3 1231 V3,
Ubuntu 18.04,
qemu 2.11

I've tried looking in windows to do this, but the places folks say to enable HW acceleration don't exist when I get there, and I'm guessing this is because this is not an ability passed through qemu to the VM. I've tried applying each of the different video options available in virtmanager (cirrus, QXL, VGA, Virtio, VMVGA, XEN) and when I boot with any of them as the selected video model I still get the same hardware acceleration not supported error. When I try to select 3D acceleration with the virtio option I get the error that virtio 3D acceleration is not supported, which I'm guessing is due to the qemu version and not having Virgl.

A few places talk about Virgl, but it seems like the Ubuntu version of qemu doesn't support this, and the guides I've found to enable this require completely building a newer qemu which I'd rather not mess with too much stuff on my VM server and risk something else breaking since everything else is working great. I did find this post, which looks almost too simple of course, but I'm also not sure about using the stein repo and if what affects it might have on everything other than just enabling Virgl. So if anyone knows of a way to add a virtual gpu that would simply make sketchup see that hardware acceleration is enabled I'd really appreciate it!

I also guess I could go buy a cheap low profile GPU and figure out a way to pass it through to the windows VM, but it just seems like a waste and shouldn't be needed.

Best Answer

Currently there are not drivers for Windows that support Virgl and 3D acceleration and OpenGL. I resolved this by purchasing an inexpensive PCIE GPU to directly pass through to the VM to be able to have 3D acceleration and OpenGL on my VM. Details on how I did this are listed in this post.

Related Question