{"id":10080,"date":"2021-08-18T14:13:38","date_gmt":"2021-08-18T11:13:38","guid":{"rendered":"https:\/\/kifarunix.com\/?p=10080"},"modified":"2024-03-18T18:51:14","modified_gmt":"2024-03-18T15:51:14","slug":"install-virtualbox-guest-additions-on-debian-11","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-debian-11\/","title":{"rendered":"Install VirtualBox Guest Additions on Debian 11"},"content":{"rendered":"\n
You might have installed Debian 11 Bullseye on VirtualBox, and realized that it is not in full-screen view by default. If you need to set it to full-screen view, follow through this guide to learn how to install VirtualBox Guest Additions on Debian 11 Bullseye.<\/p>\n\n\n\n
There are so many feature that VirtualBox Guest additions can offer. This include;<\/p>\n\n\n\n
To read more on VirtualBox Guest addition features on the VirtualBox User Manual<\/a>.<\/p>\n\n\n\n Install Debian 11 Bullseye on VirtualBox by following the link below;<\/p>\n\n\n\n Install Debian 11 on VirtualBox<\/a><\/p>\n\n\n\n To mount the guest additions ISO file using VirtualBox manager, open the virtual machine and click Devices<\/strong> > Insert Guest Additions CD image<\/strong> on the Menu bar.<\/p>\n\n\n\n Before that, ensure you have an empty IDE controller, on storage settings.<\/p>\n\n\n When VirtualBox guest addition ISO file is inserted, you may or may not be prompted on how to open it. If prompted, select Open with File Manager<\/strong>.<\/p>\n\n\n\n The ISO file is mounted as a removable device. To mount it, open a terminal and run the command below;<\/p>\n\n\n\n Listing the contents of the mount point:<\/p>\n\n\n\n Now, to install VirtualBox guest additions, you need to have the kernel headers, DKMS framework, and build tools installed.<\/p>\n\n\n\n Once the installation is done, you can now install VirtualBox guest additions by executing the command below;<\/p>\n\n\n\n Sample command output;<\/p>\n\n\n\n Once the installation is done, restart your virtual machine in order to reload the kernel modules.<\/p>\n\n\n\n Once the system reboots, it should boot to full-screen mode.<\/p>\n\n\n\n If the screen dont automatically switch to full screen upon boot or login, toggle the View option > Auto-resize Guest Display<\/strong>.<\/p>\n\n\n\n Uninstall, for some reasons, you can always uninstall Guest Additions using the command below;<\/p>\n\n\n\n Well, that is all on how to install VirtualBox Guest Additions.<\/p>\n\n\n\n Install VirtualBox Guest Additions on Rocky Linux 8<\/a><\/p>\n\n\n\nInstalling VirtualBox Guest Additions on Debian 11<\/h2>\n\n\n\n
Mount the guest additions ISO file<\/h3>\n\n\n\n
<\/figure><\/div>\n\n\n
sudo mount \/dev\/cdrom \/mnt<\/code><\/pre>\n\n\n\n
ls -1 \/mnt<\/code><\/pre>\n\n\n\n
AUTORUN.INF\nautorun.sh\ncert\nNT3x\nOS2\nrunasroot.sh\nTRANS.TBL\nVBoxDarwinAdditions.pkg\nVBoxDarwinAdditionsUninstall.tool\nVBoxLinuxAdditions.run\nVBoxSolarisAdditions.pkg\nVBoxWindowsAdditions-amd64.exe\nVBoxWindowsAdditions.exe\nVBoxWindowsAdditions-x86.exe\n<\/code><\/pre>\n\n\n\n
Install Required Packages<\/h3>\n\n\n\n
sudo apt update -y && sudo apt upgrade<\/pre>\n\n\n\n
sudo apt install dkms linux-headers-$(uname -r) build-essential<\/code><\/pre>\n\n\n\n
Install VirtualBox Guest Additions<\/h3>\n\n\n\n
sudo sh \/mnt\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n
Verifying archive integrity... All good.\nUncompressing VirtualBox 6.1.26 Guest Additions for Linux........\nVirtualBox Guest Additions installer\nCopying additional installer modules ...\nInstalling additional modules ...\nVirtualBox Guest Additions: Starting.\nVirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel \nmodules. This may take a while.\nVirtualBox Guest Additions: To build modules for other installed kernels, run\nVirtualBox Guest Additions: \/sbin\/rcvboxadd quicksetup <version>\nVirtualBox Guest Additions: or\nVirtualBox Guest Additions: \/sbin\/rcvboxadd quicksetup all\nVirtualBox Guest Additions: Building the modules for kernel 5.10.0-8-amd64.\nupdate-initramfs: Generating \/boot\/initrd.img-5.10.0-8-amd64\nVirtualBox Guest Additions: Running kernel modules will not be replaced until \nthe system is restarted\n<\/code><\/pre>\n\n\n\n
systemctl reboot -i<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
sudo sh \/mnt\/VBoxLinuxAdditions.run uninstall<\/code><\/pre>\n\n\n\n
Related Tutorials;<\/h3>\n\n\n\n