Greenwebpage Community Blog Tutorials How to Install VirtualBox Guest Additions on Debian 12: An Easy Approach
Tutorials

How to Install VirtualBox Guest Additions on Debian 12: An Easy Approach

Install-VirtulaBox-guest-addition-on-Debian-12

Are you looking for an easy installation method for Guest Additions on Debian 12? You’re at the right place!

Installing VirtualBox Guest Additions is necessary and important because it improves the performance and integration of the virtual machine. It also provides improved graphics, smooth mouse integration, shared folders, and better overall interaction between the host and guest systems.

So let’s start the guide!

How to Install VirtualBox Guest Additions on Debian 12

First of all, update the packages list to ensure that your system has the latest software versions, security updates, and bug fixes available in the repository:

sudo apt update

Next, install the necessary tools and headers to compile and install VirtualBox Guest Additions on Debian:

sudo apt install build-essential dkms linux-headers-$(uname -r)

Afterward, move your cursor to the top left corner of the VirtualBox window, click “Devices” and select “Insert Guest Addition CD Image”:

Now, create a mount point for the guest addition using:

sudo mkdir /mnt/cdrom

As a result, the CD image of the guest addition will be ready to be mounted:

sudo mount /dev/cdrom /mnt/cdrom

Move to the specified created directory:

cd /mnt/cdrom

Use –nox11 for VirtualBox Guest Additions to allow the installation on your system without a GUI:

sudo sh ./VBoxLinuxAdditions.run --nox11

Now, to save changes, reboot the system:

sudo reboot

To confirm the installations of guest additions on your system, use the following command:

lsmod | grep vboxguest

This command checks whether the VirtualBox Guest Additions kernel module is loaded by listing currently loaded modules and searching for vboxguest.

Conclusion

In this guide, we’ve shown the method to install VirtualBox Guest Additions on Debian 12 by updating packages, installing necessary tools, mounting the CD image, and running the installer. Lastly, we have rebooted and verified with ‘lsmod’ to confirm that the Guest Additions module is active and functioning.

Frequently Asked Questions

VirtualBox Guest Additions are a set of drivers and applications that improve the performance and usability of guest operating systems in VirtualBox. They provide features like shared folders, better graphics performance, and clipboard sharing.
Installing Guest Additions enhances the integration between the host and guest systems, enabling features such as seamless mouse integration, improved video support, and shared clipboard functionality.
Open a terminal in your Debian guest and run: sudo apt update, sudo apt install build-essential linux-headers-$(uname -r)
In the VirtualBox menu, go to Devices > Insert Guest Additions CD image. If prompted, download the ISO. Once inserted, it should auto-mount.
You can auto mount manually using: sudo mount /dev/cdrom /mnt

Exit mobile version