Page 1 of 1
opengl libraries for ubuntu running on Virtual Box
Posted: 17. Dec 2012, 07:55
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??
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 17. Dec 2012, 16:13
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.
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 19. Dec 2012, 06:36
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!!
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 19. Dec 2012, 15:11
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?
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 20. Dec 2012, 07:02
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??
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 20. Dec 2012, 15:28
by Perryg
I see that it is working in Xorg. Post the guests log file (as an attachment)
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 21. Dec 2012, 06:51
by stranger_nub
guest log? Which one? I have already posted the xorg.log of the linux OS running as guest.
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 21. Dec 2012, 15:13
by Perryg
Post the guests log file (as an attachment)
See
Online Users Manual for the location of the file.
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 24. Dec 2012, 07:48
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..
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 24. Dec 2012, 15:52
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.
Re: opengl libraries for ubuntu running on Virtual Box
Posted: 26. Dec 2012, 06:32
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?