Hello,
For thos who don't know, 3D acceleration on linux VMs is working when both conditions below are met :
- the VM is configured with 3D acceleration: Display > Acceleration > Enable 3D acceleration is checked.
- glxinfo output includes :
Code:
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
I always had trouble to get 3D acceleration working on Slackware VMs. As far as I remember, until VirtualBox 5, it was required to create the symlink below (
source) for that :
Code:
$ mkdir -p /usr/lib/dri
$ cd /usr/lib/dri
$ ln -s /usr/lib/xorg/modules/dri/swrast_dri.so
But, this symlink is now of no help. 3D acceleration is not working:
Code:
$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
Instead, to get 3D acceleration, (opengl) softwares can be started as below :
Code:
LD_PRELOAD=/usr/lib64/VBoxOGL.so <program_name>
Note: Some softwares will work (ex. dhewm3) while others will crash (ex. gzdoom).
Recently, I installed latest VirtualBox and created a Slackware-14.2 VM. After I installed the guest additions, I noticed the error message below on next boot :
Code:
/etc/rc.d/rc3.d/S10vboxadd: line 239: /etc/ld.so.conf.d/00vboxvideo.conf: No such file or directory
There's
this thread about that. Creating only the directory
/etc/ld.so.conf.d/ does not help. Indeed, on Slackware,
/etc/ld.so.conf does not handle files in directory
/etc/ld.so.conf.d/.
To fix that, simply add the line below at start of
/etc/ld.so.conf :
Code:
include /etc/ld.so.conf.d/*.conf
After reboot, the 3D acceleration (should) work(s) :
Code:
$ glxinfo | grep -i opengl
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
Hope this help some.
--
SeB