Virtualbox is an excellent application to have if you’re looking to try out new operating systems and/or are generally interested in virtualisation for the many benefits it offers.
One thing which VirtualBox was missing till some time back was support for 3D acceleration for guest operating systems. What this means is that the graphics driver used inside the guest virtual machines was only capable of simple 2D graphics and thus interfaces like Compiz on Linux and Aero on Vista were not useable.
There was basic 3D support for Windows guests in Virtualbox 2.1 but users using Virtualbox to run Linux guests were mostly confined to the 2D graphics driver. That has changed with the release of VirtualBox 2.2 recently and VirtualBox now supports 3D acceleration. The 3D acceleration support built in VirtualBox uses your native machine’s graphics hardware to provide this capability, so if your native graphics driver doesn’t have 3D capability, VirtualBox cannot make use of it.
The support for 3D acceleration is not enabled by default and with this tuturial we aim to help you guys set up a new virtual machine with 3D accelerated graphics support.
First create a new Machine the usual way, and install a guest operating system in it. We used Ubuntu for our testing.
Now, you need to edit the settings of your newly created virtual machine. To edit the settings for any virtual machine, the virtual machine has to be shut down. So, first shutdown whatever operating system you have running inside the virtual machine.
Now, while the virtual machine is highlighted, click on the Settings button to open up the settings window.
In the general settings pane, check the check box titled, “Enable 3D acceleration”.
That’s it. The virtual machine has been enabled for 3D accelerated graphics now. But, to actually start using 3D effects inside your guest operating system, you need to be using the special VirtualBox graphics driver, which is distributed with the “Guest Additions”.
To Install the VirtualBox “Guest Additions” drivers in your guest operating system, while the guest is running, click on the Devices menu and select the “Install Guest Additions” option.
Now, follow the instructions to install the drivers in the guest operating system.
Now, you can enable Aero or Compiz effects in the guest operating system and make full use of the graphical capabilities of your machine’s graphics card.
Receive the latest update in your inbox.