Developing software using OpenGL on an OS in a VM?

Started by
14 comments, last by Sik_the_hedgehog 11 years, 2 months ago

Switch to VMWare/VMPlayer if you want accelerated graphics in a VM.

You can download a trial for free, setup your VM, then switch to the player after 30 days and keep using it.

Will I be able to develop OpenGL applications? Will it support higher versions of GLSL instead of Mesa's 1.20 GLSL version? Because this is the only reason I'm sort of forced to stop using VM's, to stop using Mesa and having to install a real graphics card driver.

Advertisement
The only VM I have found that does OpenGL well is the Android Emulator (based on QEMU).
But even this has issues.

Hopefully one day we will have decent 3D passthrough but at the moment it is all very experimental and/or slow and buggy.

So this is one area where duel booting is still the best way for Linux and Windows dev.
http://tinyurl.com/shewonyay - Thanks so much for those who voted on my GF's Competition Cosplay Entry for Cosplayzine. She won! I owe you all beers :)

Mutiny - Open-source C++ Unity re-implementation.
Defile of Eden 2 - FreeBSD and OpenBSD binaries of our latest game.

However, once Steam on Linux comes out I'd be happy to switch completely from Windows to Linux. But in the mean time, I have to stay with Windows.

Steam for Linux is out (albeit in beta), the problem is that it needs more games =P (although seems to be getting games at a faster pace than its Mac counterpart)

As for the actual topic: yeah, you won't get what you want with a virtual machine, the most you can get is VMWare and OpenGL 2 if I recall correctly (short of using a software renderer, which is what Mesa would do). Either dual boot or get a second computer and install Linux on it (in the latter case you could try to connect the computers so that somehow they can share the files without much problem, which would be probably much faster for debugging than dual boot - no idea what options are out there though).

Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.
It may be possible to set up dual boot and run your windows install as a guest while you are booted into Linux. This is fairly simple with Mac OS X and parallels. I wonder if anyone has accomplished it with virtualbox Linux and windows.

Your options are pretty much to install linux directly on the metal, or suck it up and develop on Windows.

I honestly recommend the latter - graphics driver support in Linux, while worlds better than it was a few years back, is still a rather sore point...

I wonder if anyone has accomplished it with virtualbox Linux and windows.


It's a pretty normal thing to do. We used this to access various Windows-centric network services at my previous employer.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

I honestly recommend the latter - graphics driver support in Linux, while worlds better than it was a few years back, is still a rather sore point...

At least with Nvidia hardware it's way more than bearable (provided you accept using the proprietary drivers), Optimus shenanigans aside (shouldn't be an issue otherwise). If you have other hardware you're pretty much screwed though (your mileage may vary in that case).

Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

This topic is closed to new replies.

Advertisement