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/VBoxLinuxAdditions.run
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.