Test command from inside VM to detect if VirtualBox 3D acceleration is enabled or disabled?

Discussions about using Linux guests in VirtualBox.
Post Reply
adrelanos
Posts: 22
Joined: 9. Sep 2018, 09:48

Test command from inside VM to detect if VirtualBox 3D acceleration is enabled or disabled?

Post by adrelanos »

VMSVGA 3D acceleration seems to be working.

Without, 3D acceleration disabled the CPU utilization is higher as expected (100%).
With, 3D acceleration enabled the CPU utilization is lower (30%).

The output of `glxinfo` is exactly the same with and without 3D acceleration.

How can I test using a command / script from inside a VirtualBox VM if 3D acceleration is enabled or disabled?

I could look on the host obviously but this won't work in my use case. The status of 3D acceleration enabled or disabled shall be detected from inside the VM by a program or script. The purpose is to fix / workaround a bug which is primarily happening inside VMs in a third party, QT based application, automatic fallback to softwarecontext renderer.
Post Reply