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

8,771

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.

Share:
8,771
Tilden
Author by

Tilden

Updated on September 18, 2022

Comments

  • Tilden
    Tilden over 1 year

    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.

    • Christian Ehrhardt
      Christian Ehrhardt over 4 years
      Hi Tilden, as I outlined at my blog there are a few different types of 3d passthrough. If virtgl really is enough then the post you linked is true - I added all needed to the virtualization stack of Ubuntu 19.04 and Ubuntu Cloud Archive makes that available for the last LTS. So you'd either have to upgrade to 19.04 or use UCA-Stein as suggested (for virtgl)
    • Tilden
      Tilden over 4 years
      Hi Christian, thanks for the info - I did use the Stein repository and am now able to select adding 3D support. However this still didn't fix the problem - as there still isn't 3D hardware support enabled in Windows it seems. I found a post on this and OpenGL on Windows, but it doesn't look like these are working drivers for Windows. If you or anyone knows of a way to support virgl on Windows or any way to make windows think hardware support is enabled, I would appreciate it.
    • catbadger
      catbadger about 4 years
      Did you ever solve this?
    • Tilden
      Tilden about 4 years
      No, I never found a solution for this. Would still love help if anyone is knows how to accomplish this.