Vishvajit Kumar
i am a php developer. i have good knowledge in magento and wordpress.
You may have noticed certain limitations if you installed Ubuntu as a guest operating system in VirtualBox. The screen resolution may be...
Image Credits: pixabay
You may have noticed certain limitations if you installed Ubuntu as a guest operating system in VirtualBox. The screen resolution may be stuck, file sharing between the host and guest may fail, and overall performance may appear sluggish. This is where the VirtualBox Guest Additions come in. In this post, we will show you how to install VirtualBox Guest Additions in Ubuntu.
Guest Additions are a collection of drivers and utilities that enhance the integration of the host and guest operating systems. Installing Guest Additions unlocks various valuable functions, such as:
Before starting with the installation, ensure that you meet the following requirements:
If you haven’t already downloaded and installed VirtualBox, do so from the official website.
You must first install some essential packages before proceeding to install Guest Additions. Run the following command on the Ubuntu terminal:
sudo apt update && sudo apt upgrade -y
sudo apt install build-essential dkms linux-headers-$(uname -r)
These packages guarantee that the Guest Additions modules are compiled properly.
Keeping your system up to date is usually a smart idea when installing new applications. Open the terminal and run:
sudo apt update && sudo apt upgrade -y
To ensure a smooth installation, install the following packages:
sudo apt install build-essential dkms linux-headers-$(uname -r)
If the ISO does not mount itself, open a terminal and run:
sudo mount /dev/cdrom /mnt
Once the ISO has been mounted, proceed to the directory and run the installer:
cd /mnt
sudo ./VBoxLinuxAdditions.run
Wait for the installation to be completed.
After the installation, restart the Ubuntu guest system:
sudo reboot
After the system restarts, see if the installation was successful.
If these features work, the installation is complete!
If VirtualBox cannot find the ISO, manually download it from the VirtualBox website.
Try manually mounting it with the following:
sudo mount /dev/cdrom /mnt
Ensure that you have installed them correctly using:
sudo apt install linux-headers-$(uname -r)
If the resolution does not change, try running:
xrandr –auto
Check that they are enabled in VirtualBox settings under Devices > Shared Clipboard and Devices > Drag and Drop.
How to install VirtualBox Guest Additions on Ubuntu is a simple operation that can greatly improve your virtual machine experience. It improves performance, allows for flawless integration with the host system, and unlocks helpful capabilities like a shared clipboard, drag-and-drop, and seamless display scaling.
Following the instructions in this article should result in a fully running Ubuntu VM with all Guest Addition capabilities enabled. If you find any problems, check the troubleshooting section for solutions to common issues.