Because Linux servers do not normally run with a Window Manager like KDE or GNOME, the only benefit of installing guest additions on a VirtualBox VM is so that you can share drives/ folders with the host.
A common misconception is that you can resize the window and being able to copy and paste between host and guest OS. However, you can’t do any of these as you are not running a window manager!
To install Guest Additions, do the following:
Sudo apt-get install dkms
sudo apt-get install build-essential
Reboot the server by entering the command
Login in to the server.
Go 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.
Change directory to media
Create a directory called cdrom, this will become our mount point
sudo mkdir cdrom
Mount the Guest Additions ISO to the mount point
sudo mount /dev/cdrom /media/cdrom
Now change to the cdrom directory
Display the directory contents i.e. the ISO image
Depending 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!
Powered by Blogilo