Monday, March 5, 2012

Install VirtualBox Linux Guest Additions in Ubuntu Server

Monday, March 05, 2012 Posted by Andre Broers , , ,
In the previous blog post I installed Ubuntu Server in a VirtualBox virtual machine. After this we need to install Virtual Box Guest Additions. These are kernel drivers especially made for the VirtualBox (virtual) hardware. To start installing login to the virtual machine via the virtualbox console.
First thing to do is select the menu option Devices – Install Guest Additions. There doesn’t seem to happen anything, but underneath the software iso is attached to the virtual cdrom drive which we mount later on. By the way, use the right CTRL key to exit the virtual console.

After this execute the following statements:
sudo apt-get update
sudo apt-get install build-essential linux-headers-`uname –r`
sudo mount /dev/cdrom /mnt
cd /mnt
sudo bash /mnt/

You will see some warnings but this these are not serious. The first are because we are using the virtual machine kernel of ubuntu server. The last warnings are because we don’t have X11 installed. After the installation I prefer to reboot the server to see if all drivers get loaded during a system reboot.