VirtualBox Guest Additions - Ubuntu


Step 1 - Update Ubuntu

Open a Terminal window (keyboard shortcut Ctrl+Alt+t)
Enter the following command:

sudo apt update


When complete, enter the following command:

sudo apt upgrade


When prompted enter y (for "Yes").
Restart the virtual machine when prompted.

Step 2 - Inserting Guest Additions CD/DVD

From the VirtualBox Devices menu select Optical Drives.
Select VBoxGuestAdditions.iso


    Double click the Home folder icon on the Desktop.


Select and then right click the autorun.sh file.


Select Run as a Program.


Enter the password.


When the Guest Addition installation has completed, you will be prompted to Press return to close this window...


Then restart the machine.


Login when Ubuntu starts again.
From the View menu select Full Screen Mode.

For Elementary OS follow these steps:
Install the required packages for building kernel modules: sudo apt-get install build-essential module-assistant Prepare your system for building the kernel module: sudo m-a prepare With the Guest Additions CD inserted, navigate into the CD and run the following command: sudo sh VBoxLinuxAdditions.run When complete, reboot the system with: sudo reboot