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:
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)
Mount Guest Additions CD Image
From the Devices menu of your virtual machine’s window, select Devices | Insert guest additions CD image.
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
After mounting the image, cd into the /mnt directory, and run the VBoxLinuxAdditions.run script:
cd /mnt/ sudo ./VBoxLinuxAdditions.run
After the installation is complete, reboot your Ubuntu Virtual Machine before the Guest Additions software takes effect.