- Install the needed packages to create kernel modules:
sudo apt-get install dkms build-essential linux-headers-generic
- Press the
Host+ Dkey combination or click on the Devices menu and choose the Install Guest Additions… option.
- Mount the Guest Additions iso CD image:
sudo mount -t iso9660 /dev/cdrom /media/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only - Run the installation script
sudo /media/cdrom/VBoxLinuxAdditions.run
- Restart the guest machine.