These instructions are for Ubuntu 13.04 running under VirtualBox 4.2.12 on Windows 7 with SP1.
They should be the same or similar for other version combinations, but I make no guarantee.
These instructions are the same or very similar for many other Linux distros, however, the VirtualBox Guest Additions don’t work with all distros of Linux. As well, for some Linux distros, the installation does not happen automatically – you have to manually start it.
Note: sometimes, after Ubuntu updates have been installed, the Guest Additions will stop working.
See the section When Install Guest Additions… Doesn’t Autorun below on how to manually run the Guest Installation procedure again.
Why Install VirtualBox Guest Additions?
Installing the VirtualBox Guest Additions better integrates Ubuntu Linux with your system and gives you the following benefits (and more):
- better video support – more resolutions, hardware acceleration, etc. This is important with Ubuntu because the Unity desktop expects to be running on 3D hardware accelerated graphics card. If it does not find 3D hardware acceleration, it emulates it using LLVM Pipe and performance is definitely on the sluggish side.
- better mouse pointer integration
- shared folders – useful for sharing data between OSes
- seamless windows (instead of having an Ubuntu desktop and a Windows desktop, the two can be combined together. While neat, it is not quite perfect – though, I it is cool to see Linux and Windows applications running side-by-side on your Windows desktop)
- shared clipboard
1) Click on on the Devices menu and then select Install Guest Additions…:
If you are running Ubuntu in full screen mode, move your mouse to the very bottom of the screen in the middle. This will pop up the same menu options:
Alternately, you can hold down the right Ctrl
key down and press the D
key (the default Host key is the right Ctrl
key) to install the VirtualBox Guest Additions.
2) Click Run on the information dialog:
Note: sometimes selecting Install Guest Additions… (or pressing Host+D
) installs the Guest Additions CD but fails to start the install process. If you don’t get the dialog below, see this section for manually starting the install process.
3) Enter your password and then click on Authenticate:
4) A terminal will pop up and begin the process of compiling and installing the Guest Additions – how long this process takes depends on how fast your machine is, but it is at least several minutes:
The warning
The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.
is a spurious warning with Ubuntu 13.04 – though it may be a valid warning for other Linux distros.
5) Go to the System Tools icon in the top right corner and select Shut Down:
6) Choose to either Shut Down or Restart the system (it doesn’t matter which):
The next time the virtual machine starts, the guest additions will be installed and integrated.
When Install Guest Additions… Doesn’t Autorun
Sometimes, Ubuntu doesn’t automatically start the install process after after Guest Additions have been added. One of these three techniques will allow you to manually start the installation process:
Method 1
1) Click on the VBOXADDITIONS disk near the bottom of the Unity Launcher – it’s just above the trash can:
2) Click on Run Software and then continue from Step 2) above:
Method 2
1) Click on the Files icon on the Unity Launcher:
2) Click on the VBOXADDITIONS… entry under Devices:
Note: do not click on the icon because this will cause the disk to be “ejected”.
3) Click on Run Software and then continue from Step 2) above:
Method 3
1) Open a terminal and enter the following commands:
cd /media
cd VBOXADDITIONS_4.2.12_84980
sudo sh VboxLinuxAdditions.run
Note: VBOXADDITIONS_4.2.12_84980
is specific to VirtualBox 4.2.12. Each version of VirtualBox will have a different name. The simplest way to enter the name is to: (1) type cd VB
and then press the Tab
key to complete the name.
It will then go through the process of compiling and installing the Guest Additions: