Install VirtualBox Guest Additions
Launch your VBox VM from the VM VirtualBox Manager's main interface.
From the VM's window, select menu Devices > Insert Guest Additions CD imageā¦
In most Desktop Environments, the system will suggest to auto-run the installation program.
In command line environments, you'll have to mount the CD:
> mount /dev/cdrom /media/cdrom mount:/dev/sr0 is write-protected, mounting read-only
Then install the necessary packages:
> sudo apt-get install linux-headers-$(uname -r) > sudo apt-get install build-essential linux-headers-`uname -r` dkms > sudo /media/cdrom/VBoxLinuxAdditions.run