Virtual Box - Utilities and settings


Contents

Installing VirtualBox Guest Additions on a Linux VM enables support for adaptive display scaling, drag-and-drop file transfer, and clipboard sharing.

Start VirtualBox and launch the Ubuntu or Debian virtual machine. Let it boot and wait for the desktop to load. Update and upgrade the existing packages on your system by typing:

Click on Devices in the VirtualBox menu and select Insert Guest Additions CD image. Then, in a terminal, execute each line separately:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sudo apt update && sudo apt upgrade

# Next, run the following command to install necessary packages:
sudo apt install build-essential dkms linux-headers-$(uname -r)

# Open the Guest Additions folder
cd /media/username/VBox_GA_*

# Run the autorun installation script
sh autorun.sh

Enter your administrator password to continue. Once done, the terminal will display the progress of the installation.

To install VirtualBox Guest Additions on Arch Linux and Manjaro, type:

1
2
3
4
sudo pacman -Syyu

# Next, install the virtualbox-guest-utils package by typing:
sudo pacman -S virtualbox-guest-utils

Finish by restarting the virtual machine.

If you’re using Fedora, you’ll already have Guest Additions preinstalled. If you’re using other RPM-based distributions, start the virtual machine and click on Devices > Insert Guest Additions CD image from the top menu bar. In the pop-up that follows, select Run.

Enter the administrator password to authenticate the operation. Once done, restart the virtual machine.

To uninstall Guest Additions on Ubuntu and Debian, type:

1
2
cd /opt/VBoxGuestAdditions-*
sudo ./uninstall.sh

After the process is complete, restart the virtual machine and verify the changes.

To uninstall VirtualBox Guest Additions on Arch-based distributions like Manjaro, type:

1
sudo pacman -Rns virtualbox-guest-utils

To remove VirtualBox Guest Additions on Fedora, type:

1
sudo dnf remove virtualbox-guest-additions

If you manually installed Guest Additions, run the uninstallation script by typing:

1
2
cd /opt/VBoxGuestAdditions-*
sudo ./uninstall.sh

Finally, restart the virtual machine to verify if the changes persist.