Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Has anyone managed to run OpenGL inside qemu/kvm?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Has anyone managed to run OpenGL inside qemu/kvm?

Has anyone managed to have OpenGL / Hardware Acceleration running inside of a qemu/kvm VM? Or even Xen VM?

If yes, could you please provide me instructions on how to implement it?

Thanks.

Comments

  • You're probably looking for PCI passthrough of the GPU.

  • I've been wanting to try this with XEN locally (using XEN GPU passthrough) - run Windows next to Linux natively on a dev machine. Just haven't had the time. Do share if you get this working @vmunich.

  • Silvenga said: using XEN GPU passthrough

    Yeah, at the moment, PCI passthru is the only way to do it.

    XenGT has a patch for Xen 4.3.1, which is a touch out of date, and it looks not to be well maintained. However, when it hits mainline, it's supposed to be amazing.

  • I was wondering if it would be possible to use Intel's integrated graphics, but since you talked about PCI passthru, would this only work with a dedicated graphic card?

    I checked XenGT before and I will play with it soon.

  • Install OpenGL without graphics card using libraries like Mesa

  • If it's for a desktop: https://bbs.archlinux.org/viewtopic.php?id=162768

    I'm running Counter-Strike: Source on a KVM through VNC with mesa.
    I've disabled rendering on it though, since I only need the engine.

  • Jun said: Install OpenGL without graphics card using libraries like Mesa

    TIL that the Low in Lowendtalk also implies extremely shoddy performance.

    Thanked by 1Makenai
  • MaouniqueMaounique Host Rep, Veteran

    vmunich said: I was wondering if it would be possible to use Intel's integrated graphics

    VGA passthrough should work with Intel ones:
    http://wiki.xen.org/wiki/Xen_VGA_Passthrough

  • vmunichvmunich Member
    edited November 2014

    @Maounique said:
    VGA passthrough should work with Intel ones: http://wiki.xen.org/wiki/Xen_VGA_Passthrough

    Is there a way to make it work with more than one VM?

  • @BotoX said:
    If it's for a desktop: https://bbs.archlinux.org/viewtopic.php?id=162768

    I'm running Counter-Strike: Source on a KVM through VNC with mesa.
    I've disabled rendering on it though, since I only need the engine.

    Is mesa something you have to install on the guest, or only on the host?

  • Damn it it seems that my CPU (i7 4770K) won't work with VGA passthrough because according to this list, it doesn't support IOMMU:

    https://en.wikipedia.org/wiki/List_of_IOMMU-supporting_hardware

    ):

  • BotoXBotoX Member
    edited November 2014

    @vmunich said:
    Is mesa something you have to install on the guest, or only on the host?

    Only need to install it on the guest.

    @vmunich said:
    Damn it it seems that my CPU (i7 4770K) won't work with VGA passthrough because according to this list, it doesn't support IOMMU:

    https://en.wikipedia.org/wiki/List_of_IOMMU-supporting_hardware

    ):

    Same here, i7-2600K, very good CPU, sadly Intel crippled it :/

  • Ok, maybe I don't need VGA passthorugh.

    This is for a college project. I need to emulate Android x86 and make OpenGL run on it. Currently I can emulate Androidx86 on both Xen and QEMU, but OpenGL doesn't work:

    I've seen projects like Andyrond and Bluestacks and Genymotion that have OpenGL working. These projects are based on VirtualBox.

    VirtualBox doesn't have VGA passthorugh. How does VirtualBox does it then? Is the GPU emulated?

  • VMware Player on Windows has a checkbox for OpenGL Passthru. I've never tried it for anything more than VM desktops, so not sure if it would require paravirtual drivers under Android or if it emulates a supported card interface.

Sign In or Register to comment.