Guest additions are a great way to extend the functionality of your virtual machines. Guest additions for Windows and Linux are available in VirtualBox, and they let you run additional applications, access files on the host computer, and more. To install a guest addition in a virtual machine, open the virtual machine’s settings window (click the gear icon in the upper-right corner of the window, and then click Settings). In the Settings window, click Add Guest Additions. The Add Guest Additions dialog box opens. In the dialog box, select either Windows or Linux from the list on the left side of the dialog box, and then click Install. The guest addition will be installed on your virtual machine. Once a guest addition is installed, you can use it to extend your virtual machine’s functionality. For example, you can use a guest addition to run an application that you don’t have installed on your computer. You can also use a guest addition to access files on your computer that are not normally accessible to virtual machines. ..


Note:  For this article we are using version 3.0.2 on a Windows 7 (32-bit) guest OS.

Install Guest Additions for Windows

Guest Additions installs on the guest system and includes device drivers and system applications that optimize performance of the machine.  Launch the guest OS in VirtualBox and click on Devices and Install Guest Additions.

The AutoPlay window opens on the guest OS and click on the Run VBox Windows Additions executable.

Click yes when the UAC screen comes up.

Now simply follow through the installation wizard.

During the installation wizard you can choose the Direct3D acceleration if you would like it.  Remember this is going to take up more of your Host OS’s resources and is still experimental possibly making the guest unstable.

When the installation starts you will need to allow the Sun display adapters to be installed.

After everything has completed a reboot is required.

Install Guest Additions for Ubuntu

Note:  For this section we are using version 3.0.2 on Ubuntu 8.10 (32-bit) version.

If you have Ubuntu running in a virtual machine installing the Guest Additions is easy as well.  With the Ubuntu virtual machine running click on Devices and Install Guest Additions.

This will mount the ISO and show an icon on the desktop and give you the following message box where you just click Run.

Enter in your admin password and click OK.

Next you will see the installation taking place and when done you’ll prompted to click on Enter.

A Reboot of the guest OS is required to complete the installation.

Command Line Installation

If the above process doesn’t work or you want to use the command line to install Guest Additions then first open up a Terminal session.

Now type in the following commands.

ls

sudo ./VBoxLinuxAdditions-x86.run

Again a restart of Ubuntu is required from the GUI or type in “sudo reboot” (without quotes) in the command line.

 

There are a lot of cool features included with the Guest Additions such as clipboard and folder sharing, better video support, and mouse pointer integration which lets you navigate in the guest OS without having it capture the pointer. 

Related VirtualBox articles:

Try Out a New Operating System the Easy Way with VirtualBox

Use VirtualBox to Test Linux on Your Windows PC