opengl libraries for ubuntu running on Virtual Box

Discussions about using Linux guests in VirtualBox.
Post Reply
stranger_nub
Posts: 10
Joined: 6. Nov 2012, 14:05

opengl libraries for ubuntu running on Virtual Box

Post by stranger_nub »

I am having Ubuntu10.04 running on VirtualBox. Guest additions are installed successfully.

But Guest additions do not provide the OpenGL library. To run open GL demo what needs to be installed.

Some google links suggest Mesa utils. But my understanding is Mesa utils do not use vbox drivers to achieve hardware acclearation.

How to get Opengl libraries which use vbox drivers for 3D hardware accleration??
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 libraries for ubuntu running on Virtual Box

Post by Perryg »

Mesa utils is a package for testing and reporting. You already have mesa installed unless you are building a custom version of Ubuntu.
Install them and then run glxinfo | grep OpenGL in a terminal. If the guest additions installed properly (and 3D is enabled in the guest settings) you should see chromium and humper indicating that the VirtualBox drivers are in fact loaded.
stranger_nub
Posts: 10
Joined: 6. Nov 2012, 14:05

Re: opengl libraries for ubuntu running on Virtual Box

Post by stranger_nub »

Perryg, Thank you so much for the reply.

As you said the glxinfo does list out "humper" and "Chromium". But /var/log/Xorg.0.log has the following detail:

[2893649.087] (II) Next line is added to allow vboxvideo_drv.so to appear as whitelisted driver
[2893649.088] (II) The file referenced, is *NOT* loaded
[2893649.088] (II) Loading /usr/lib/xorg/modules/drivers//ati_drv.so
[2893649.088] (EE) AIGLX error: vboxvideo does not export required DRI extension
[2893649.088] (EE) AIGLX: reverting to software rendering
[2893649.093] (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
[2893649.093] (II) GLX: Initialized DRISWRAST GL provider for screen 0


Is this OK? Is it possible to fix AIGLX error: vboxvideo does not export required DRI extension
Also swrast_dri.so is provided by Mesa!!
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 libraries for ubuntu running on Virtual Box

Post by Perryg »

Yes that warning is normal. It appears so that the driver is whitelisted. If you look further down you should see the VBox dri being installed.
I would need to see the complete xorg.0.log (as an attachment) but if you run glxinfo | grep OpenGL and it says Chromium and Humper it should be working.

Does glxgears work?
stranger_nub
Posts: 10
Joined: 6. Nov 2012, 14:05

Re: opengl libraries for ubuntu running on Virtual Box

Post by stranger_nub »

Please find the xorg log attached.

Yes i am able to run glxgears and glxinfo | grep opengl displayes humper and chromium as opengl renderer.
Additionally the glxgears has max 60fps only!!
Whereas, having Mesa + software rasteriser i get fps upto ~430

Is there anything fundamentally going wrong??
Attachments
Xorg.log
(21.8 KiB) Downloaded 18 times
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 libraries for ubuntu running on Virtual Box

Post by Perryg »

I see that it is working in Xorg. Post the guests log file (as an attachment)
stranger_nub
Posts: 10
Joined: 6. Nov 2012, 14:05

Re: opengl libraries for ubuntu running on Virtual Box

Post by stranger_nub »

guest log? Which one? I have already posted the xorg.log of the linux OS running as guest.
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 libraries for ubuntu running on Virtual Box

Post by Perryg »

Post the guests log file (as an attachment)
See Online Users Manual for the location of the file.
stranger_nub
Posts: 10
Joined: 6. Nov 2012, 14:05

Re: opengl libraries for ubuntu running on Virtual Box

Post by stranger_nub »

Thanks for the link.
PFA guest log. My Linux OS is ubuntu based customized OS. But the behavior described above in noticed on both Ubuntu 10.04 and the customized OS..
Attachments
VBox.log
(87.69 KiB) Downloaded 22 times
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 libraries for ubuntu running on Virtual Box

Post by Perryg »

Log shows everything running and your glxinfo does as well, so it is working. One thing I see in the the ram and vram assigned have over committed your available memory. This can cause the host to swap and that will slow everything down.
stranger_nub
Posts: 10
Joined: 6. Nov 2012, 14:05

Re: opengl libraries for ubuntu running on Virtual Box

Post by stranger_nub »

I just tried increasing the video memory to 64MB via VBox settings. No change in behavior (glxgears ouputs max 60fps).
On a machine with all required memory allocated for the guest OS + hardware accleration enabled, what is the approximate fps achieved?
If i want to improve the fps on my setup what all settings need to be set with what values?
Post Reply