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
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to install Suricata intrusion detection system on Linux - September 3, 2015
- How to switch from NetworkManager to systemd-networkd on Linux - August 31, 2015
- How to set up a system status page of your infrastructure - August 25, 2015