July 22, 2014

Installing Virtual Box Guest Additions for Ubuntu Server

This guide should work for other OSs as well, but was written for and tested on Ubuntu Server. The information was collected from here and here, but I figured it prudent to host it here as well, in case those blogs come down some day.

To make use of the additions we must 1) mount the additions iso and 2) run its contents. This assumes that you have configured the virtual machine to have access to the iso.


  1. mkdir /media/cdrom
    mount /dev/cdrom /media/cdrom
  2. apt-get install dkms build-essential
    reboot
    /media/cdrom/VBoxLinuxAdditions-x86.run
As a bonus, we'll use the newly installed additions to access folders shared with the host. This assumes you've used the virtual box settings to make a folder named `Google_Drive` available at `~/host/Google_Drive` in the guest OS.

We need to 1) mount the shared folder. That's it!

  1. mkdir ~/host/Google_Drive
    mount -t vboxsf Google_Drive ~/host/Google_Drive