How to install VirtualBox Guest Additions in Ubuntu 18.04
This article will step through how to install VirtualBox Guest Additions in Ubuntu 18 running on Windows 10. For this turotial I’ll be using Windows 10 Pro 64-bit (the host) and describe how to install Guest Additions in Ubuntu 18.04.1 (the guest).
Step 1: Update Ubuntu
First, make sure Ubuntu is up to date before proceeding.
Open a terminal and enter the below commands:
sudo apt-get update sudo apt-get upgrade
Restart Ubuntu once the updates have finished.
Step 2: Install required packages
VirtualBox Guest Additions requires some additional packages to be installed in Ubuntu.
If you try to install Guest Additions without these additional packages you will get an error like the below:
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
To fix this, open a new terminal and enter the below command to install the missing packages:
sudo apt install linux-headers-$(uname -r) build-essential dkms
Once the install is complete, restart Ubuntu again.
Step 3: Install Guest Additions
Ensure Ubuntu is running and you are logged in
From the VirtualBox menus, select Devices > Insert Guest Additions CD image…
The software will automatically start. In the prompt, click Run.
Enter your password and click Authenticate.
A new terminal window will be opened and the installation will proceed.
You should no longer see the error mentioned in step 2.
Once the install is complete, hit Enter to close the terminal window.
You have now successfully installed VirtualBox Guest Additions in Ubuntu 18.