[vbox-dev] Enabling 3D acceleration with VBoxOGL and VBoxECL

Larry Finger Larry.Finger at lwfinger.net
Sun Feb 19 21:19:00 GMT 2017

On 02/19/2017 01:39 PM, Michael Thayer wrote:
> Hello Larry,
> 17.02.2017 22:50, Larry Finger wrote:
>> An openSUSE user has filed a bug regarding the lack of 3D acceleration
>> in guests. I have followed the various discussions regarding this issue
>> and I now have most of the parts in our guest packages. My main
>> remaining problem is that "/usr/bin/VBoxClient --check3d" returns
>> nothing. For my current testing, I have removed that test from my
>> vboxadd shell, but I will need to solve the problem before I can push
>> the changes.
>> I looked at the VBoxClient code, but quickly got lost. What are the
>> requirements for a non-NULL response for the command?
> Don't know if this is confusing, but the command returns true or false, as in
> "if /usr/bin/VBoxClient --check3d; then" in a shell script.  In that case
> VBoxOGL.so and VBoxEGL.so should be set up to replace the default Mesa
> libOGL.so.* and libEGL.so.*.  Our installer uses ld.so.conf.d for this.


Thanks for the response. I was confused at first, but I eventually did realize 
that VBoxClient is returning true if the 3D box is checked, and false if not. My 
script is working correctly to enable acceleration. My only problem is the 
cleanup required if 3D is turned off on a subsequent boot. That should not be 
difficult to fix.


More information about the vbox-dev mailing list