VirtualBox Guest Additions are a set of device drivers and system applications which are designed to be installed in the guest operating systems of VirtualBox. Guest Additions are available as an ISO image for Windows, Linux, Solaris or OS/2. The Guest Additions offer a number of features including:
- Seamless mouse support across host and guest operating systems.
- Shared folders/clipboard between host and guest operating systems.
- High-resolution video modes as well as hardware-accelerated performance for 3D graphics and 2D video.
- Time synchronization between host and guest operating systems.
In this tutorial, I will describe how to install VirtualBox Guest Additions for Linux.
I assume that you already have a Linux guest virtual machine (VM) up and running on VirtualBox. The rest of the steps below should be done inside the Linux guest VM.
First, check out the version of your VirtualBox, and download the ISO image of
matching Guest Additions from http://download.virtualbox.org/virtualbox. For example, assuming that VirtualBox is 4.2.16, download Guest Additions for version 4.2.16.
Next, install necessary packages:
On Ubuntu, Mint or Debian:
On CentOS or RHEL:
Now, mount the ISO file for Guest Additions:
$ cd /mnt
Run the following executable in the mount point. This is the Guest Additions installer.
After the executable is completed, reboot the guest operating system to activate the updates.
To verify that Guest Additions are installed successfully, run the following. You should see several kernel modules loaded in the kernel.
vboxvideo 12611 0 drm 286313 1 vboxvideo vboxsf 39557 0 vboxguest 235614 2 vboxsf
Subscribe to Xmodulo
You can have daily Linux tutorials and FAQs delivered to your email inbox. Simply enter your email address below to subscribe to our mailing list. You will receive hands-on guides and carefully written tutorials related to Linux, everything for free.