OpenGL Not Working On Linux Guest?

Discussions about using Linux guests in VirtualBox.
Post Reply
JeZ-l-Lee
Posts: 81
Joined: 22. Jun 2009, 23:46
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows(R) XP Pro SP3 32bit

OpenGL Not Working On Linux Guest?

Post by JeZ-l-Lee »

OpenGL Not Working On Linux Guest?

Hi,

Running Microsoft(R) Windows(R) 8 Pro 64Bit host with an Xubuntu 13.04 64Bit guest
using current VirutalBox version 4.2.16 for Microsoft(R) Windows(R).

I _think_ I installed the Linux guest guest additions,
but OpenGL hardware acceleration seems not to be working?

I am a cross-platform indie video game developer who is trying to support Linux
with a brand new video game engine I have created using new SDL2.

When I run the SDL2 game in Linux guest under VirtualBox I receive an SDL2 initialization error:
"No available video device" which means OpenGL hardware acceleration is not working in Linux guest.

I am a beginner Linux user and do not know how to proceed.
Can someone please instruct me on how to get OpenGL hardware acceleration working on my Linux guest?

Thanks!

If you are interested in the SDL2 cross-platform game I am working on then visit this SDL forum post here:
http://forums.libsdl.org/viewtopic.php?t=9463

JeZ+Lee
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: OpenGL Not Working On Linux Guest?

Post by Perryg »

The guest additions must be installed and working, as well as 3D being enabled in the guest settings.

Run the following in the guests terminal:

Code: Select all

glxinfo | grep OpenGL
You may need to install mesa-utils
Post Reply