Linux - Install VirtualBox Guest Additions On Ubuntu 22.04
Linux - Install VirtualBox Guest Additions On Ubuntu 22.04
UBUNTU
VirtualBox guest additions are a collection of device drivers and software application packages shipped with Oracle
VirtualBox. Installing Guest additions improve the guest operating system’s performance and extra features.
Guest Addition provides seamless mouse support, file transfer between the host and the VM, VM screen resolution will
match the size of the VirtualBox window, automated guest login using credentials from a master login system, and many
more.
Here, we will see how to install VirtualBox guest additions on Ubuntu 22.04.
Prerequisites
Before installing Guest additions, install the build tools and kernel headers for the current kernel.
COPY
sudo apt update
COPY
sudo mount /dev/cdrom /media
COPY
cd /media
sudo ./VBoxLinuxAdditions.run
Even before the installation gets complete, your system will get a full-screen view which confirms that the installation is
successful.
If your VM guest screen resolution doesn’t change to the size of the VirtualBox window, try clicking maximize and minimize
the button of the VM window.
As soon as you attach the guest additions image to a VM, you will get a prompt to run the automatic installation. Click Run.
OR
Files >> CD Drive (VBOX_GAs_6.1.32) >> autorun.sh (Right-click) >> Run as a Program.
Authenticate
Next, you will get a window to enter a password to authorize the installation.
Even before the installation gets complete, your system will get a full-screen view which confirms that the installation is
successful.