====== VirtualBox VM ====== ===== Guest Additions ===== * To upgrade the Guest Additions after upgrading the VirtualBox version, download the guest additions pack, shut down all virtual machines then start VirtualBox as rootsudo virtualbox * After installing the Guest Additions, close VirtualBox and restart it under your user account ===== Install Guest Additions on a Debian 11 guest operating system ===== - The following steps need to be taken inside the VM after the operating system has been installed - Install the kernel headers, DKMS framework, and build tools$ sudo apt update -y && sudo apt upgrade sudo apt install dkms linux-headers-$(uname -r) build-essential - Attach the guest addition ISO to the VM and mount it$ sudo mount /dev/cdrom /mnt/cd - Install the VirtualBox guest additionssudo sh /mnt/cd/VBoxLinuxAdditions.run - Restart your virtual machine in order to reload the kernel modulessystemctl reboot -i - If you want the VM to automatically switch to full screen upon boot or login, toggle the **View option --> Auto-resize Guest Display** - Uninstall the guest additionssudo sh /mnt/VBoxLinuxAdditions.run uninstall - Repeat steps 3-6 if the kernel or the VirtualBox version changes * [[https://kifarunix.com/install-virtualbox-guest-additions-on-debian-11/|Install VirtualBox Guest Additions on Debian 11]]