Virtualbox Guest Editions for Ubuntu

Using Virtualbox is a way to run an isolated environment on your desktop and help manage a consistent deployment process. To have Virtualbox running efficiently on Ubuntu you really should install the utilities and drivers that come in the Virtualbox Guest Editions addon.

After you have installed your Linux Guest system, there are a few additional packages needed for the Guest Additions. These packages enables you to create specific kernel modules for Virtualbox on your Ubuntu virtual server.  For Debian based distro’s like Ubuntu, you need to install the following packages or the installation of the guest additions will fail:


In a terminal window, you can use the following command to install the neccesary packages

sudo apt-get install dkms build-essential linux-headers-generic

Mounting the guest editions with Ubuntu 10.10 (host & guest) with virtualbox 4

Using the virtualbox menu to mount the VirtualboxGuestEditions.iso image file is problematic.  Just selecting the iso from the Devices > CD/DVD Devices is not sufficient to get the image to mount.

First you should unmount any other iso images, especially the Ubuntu server install image. Then run the following command to mount the guest editions image

sudo mount /dev/scd0 /media/cdrom

Followed by selecting Devices > CD/DVD Devices > VBoxGuestAdditions.iso from the virtualbox menu

This will then complete the mount command issued previously and you then have access to the mounted cd image.

Run the guest editions installer using the following command

sudo /media/cdrom/

Now that we have what is needed for the Guest Additions, it’s time to actually start installing what we want. If you haven’t done so already, mount the GA ISO to the VM. This is done using the Device Menu, then click on Install Guest Additions. See the screen shot.

Make sure that no other CD is already loaded for the VM, like the install disk. Unmount that one first. The CD doesn’t always get mounted automatically, so you have to do that manually. Usually an icon appears on the Desktop with the name of the inserted CD. You can mount the disc from there, but if you don’t have a GUI, you have to mount it using the command line. The CLI can also be used if you have a GUI. Use a terminal emulator for that.

On the command line, check if there is a valid mount point for the CD. This is usually /media/cdrom, but any empty folder can be used as mount point. Now to mount the CD, issue the following command:

mount /dev/scd0 /media/cdrom

Using Usb and shares

There is a good guide to using USB memory sticks and drive shares at:

For more configuration ideas, have a look at the virtualbox forum

Thank you.

This work is licensed under a Creative Commons Attribution 4.0 ShareAlike License, including custom images & stylesheets. Permissions beyond the scope of this license may be available at @jr0cket
Creative Commons License