How to Install VirtualBox Guest Additions on Ubuntu 20.04 Linux

After installing Ubuntu 20.04 on VirtualBox, we need to install VirtualBox Guest Additions to enable additional features that VirtualBox provides for the Guest Operating system.

Following are the steps to install VirtualBox Guest Additions on a Ubuntu 20.04 Virtual Machine:

  1. Install Dependencies.
  2. Mount Guest Additions CD Image.
  3. Execute VBoxLinuxAdditions.run.

Install Dependencies

Login to your VM and Install the dependency packages before starting with the Guest Additions installation by running the following in a Terminal window:

sudo apt update
sudo apt install build-essential dkms linux-headers-$(uname -r)
Install Dependencies virtualbox guest additions ubuntu

Mount Guest Additions CD Image

From the Devices menu of your virtual machine’s window, select Devices | Insert guest additions CD image.

Insert Guest Additions CD Image Ubuntu

Click on Cancel when asked, Would you like to run it?

Click on Cancel when asked, Would you like to run it?

Then, open the Ubuntu terminal and mount the guest additions CD image by running the following command:

sudo mount /dev/cdrom /mnt

Execute VBoxLinuxAdditions.run

After mounting the image, cd into the /mnt directory, and run the VBoxLinuxAdditions.run script:

cd /mnt/
sudo ./VBoxLinuxAdditions.run
Execute VBoxLinuxAdditions.run

After the installation is complete, reboot your Ubuntu Virtual Machine before the Guest Additions software takes effect.

How to Install VirtualBox Guest Additions on Ubuntu 20.04 Linux