Have you heard of Guest Additions? Anyone who virtualizes a Linux distribution using Virtualbox easily realizes that not everything works the best. Either it is the graphics that was not detected, or the monitor definition is not the best, there is difficulty in interacting between the native system and the virtualized system, etc.
To solve such problems we can install Guest Additions. Learn how to install on Ubuntu 20.04 LTS.
What is Guest Additons?
Basically Guest Additions is a set of drivers that allow:
- Better graphics card performance (since the graphics card installed inside the machine is usually a generic one)
- Possibility of changing the monitor definition
- Easy file sharing between the virtual machine and the native machine (Share Folders)
- The mouse starts to work transparently in the native system and in the virtualized system, that is, there is no need for the CTRL (right) to “take out” the mouse inside the OS
How to install Guest Additons on Ubuntu 20.04 LTS?
Installing Guest Additons on Ubuntu 20.04 LTS is relatively simple. To begin you must install the necessary dependencies using the following command:
sudo apt install linux-headers – $ (uname -r) build-essential dkms
Then, in VirtualBox, go to Devices> Insert Guest Additions CD Image
When loading the Guest Additions image, a window will appear to start the installation process. Press Run.
For a few minutes the new modules will be installed and loaded into the system.
Once installed, restart the machine and check the differences. With Guest Aditions the communication between the native and virtualized operating system becomes transparent to the user. By the way, don't forget that you also have support for copying information to and from the virtual machine. To do this, simply activate Share Clipboard and Drag n’Drop, in Devices, in VirtualBox. Try it and if you have doubts leave it in the comments.