sudo apt-get install dkmsGo to the Virtualbox Devices entry on the menu bar of the guest OS and select Install Guest Additions… , this will load the Guest Additions ISO CD image.
sudo apt-get install build-essential
Change directory to media
cd /mediaYou will likely find a sub directory called cdrom in this directory. You can list the sub directories using the `ls` command. If not create it
sudo mkdir cdromthis will become our mount point
Mount the Guest Additions ISO to the mount point
sudo mount /dev/cdrom /media/cdromNow change to the cdrom directory
cd /media/cdromDisplay the directory contents i.e. the ISO image
lsDepending on whether you are running a 32bit or 64bit OS, run the relevant installer. In this case 32bit so enter
You will get an error saying “Could not find X.org or Xfree.86 on the guest system”. This is because we are running the server edition and have not got an window manager e.g. KDE or GNOME installed!
If the process complains that DKMS could not be used to build the new kernel then you may need to run the following command to install the linux-headers manually
sudo apt-get install build-essential linux-headers-$(uname -r)