- The following document provides instructions for installing guest additions on Ubuntu.
- This installation was performed on 12/15/2022 running Ubuntu 20.04 as a guest machine using VirtualBox 6.1 on Windows10.
- Open a commandline on Ubuntu and execute the following commands:
shawn@shawn-VirtualBox:~$ sudo apt update
shawn@shawn-VirtualBox:~$ sudo apt-get upgrade
shawn@shawn-VirtualBox:~$ sudo apt-get dist-upgrade
shawn@shawn-VirtualBox:~$ sudo apt install build-essential dkms linux-headers-$(uname -r)
- Go to devices then select "Insert Guest Additions CD Image".
-
Open the mounted CD in the file explorer then open a terminal.
-
Execute the following command:
shawn@shawn-VirtualBox:~$ sudo ./VBoxLinuxAdditions.run
-
After the installation is finished execute
shawn@shawn-VirtualBox:~$ shutdown -r now
Guest additions provides useful features to allow the host and guest machine to interact; namely, drag/drop functionality, shared clipboard as well as enabling the guest machine to have a custom screen resolution. These features can be enabled using the devices tab.