In this post, we’ll show you how to install Guest Additions on a Virtual Box installation of Elementary OS. This will be the next step if you were directed here from the installation video. Please follow these steps if you have not already installed elementary OS.
Guest additions are accessible from your desktop which can make transferring files, copying, and pasting text between the host and guest machines much easier. An important capability of guest additions is to display your guest operating system in full-screen mode.
VirtualBox Guest Additions Installation
To start with, open the terminal and enter a few commands to configure your machine.
1. Update the Software package by entering the following commands:
sudo apt-get update;sudo apt-get upgrade;sudo apt-get dist-upgrade
Before you compile a kernel module, make sure to install the required packages. In most cases, these are Linux headers and gcc-libs. Use this command:
sudo apt-get install build-essential module-assistant
Before you can build the kernel module, you’ll need to prepare your system. Here are the commands to do so:
sudo m-a prepare
Now I have to add the Guest Additions CD image to my virtual machine.
Under the VirtualBox menu, find ‘Devices’ and click ‘Insert Guest Additions CD image.’
When prompted, select “Download for Windows” to complete the Guest Additions installation.
All done? Hit the button to register your image and insert it into a virtual CD/DVD drive.
Open up the terminal again and type these commands:
The output will look something like this:
/dev/sr0: LABEL="VBOXADDITIONS_4.####" TYPE="iso9660"
Please check the /dev/sr0 is the name for the virtual drive, and /dev/sda1 is a device on the IDE controller.
Let’s create a CDROM directory under media and mount the Guest Additions image.
sudo mkdir /media/cdrom
sudo mount /dev/sr0 /media/cdrom
Let’s switch to the directory we just created:
Now run the ‘VBoxLinixAdditions’ installer.
sudo sh VBoxLinuxAdditions.run
If you wish to install the Guest Additions now, you’ll need to restart the Window System. To do this, use the following command:
Now that your system has reloaded, you can try out all of its features including entering full-screen mode, copying and pasting text from the Host system to the Guest system.
If you have any problems with this tutorial, just let us know and we’re confident we can work it out for you.