VirtualBox offers 3D acceleration by intercepting OpenGL requests made by the guest vm, and passing then down to the host's OpenGL library to be executed directly by the host.
To Configure a VM to use VirtualBox 3D acceleration:
Then simply start-up your Ubuntu guest.
But on some platforms, and in some circumstances, the wrong renderers may be used by the guest OS which results in very slow 3d performance of the guest.
To check that you're using VirtualBox 3D acceleration on Ubuntu 16/17, type the following command:
If you see something like this:
... i.e. the OpenGL Renderer is NOT Chromium, then you are NOT using the VirtualBox OpenGL drivers.
To get best performance possible, you have to install VirtualBox guest-addition within the VM; to accomplish this target you have to execute following steps:
sudo apt install dkms build-essential module-assistant
sudo m-a prepare
Once the guest additions have been installed, press Enter to close the terminal window and "reboot" your Ubuntu guest-machine.
Once you do this, and then you reboot the guest you should re-rerun:
Which hopefully will result in the Chromium renderers being seen to be used:
And a consequence is that your Linux guest will be faster and smoother.