sudo apt install dkms linux-headers-$(uname -r) build-essential<\/code><\/pre>\n\n\n\nMount and Install Guest Additions ISO file on the Virtual Machine<\/h3>\n\n\n\n To proceed, you need to have the Guest Additions ISO file mounted on the virtual machine.<\/p>\n\n\n\n
Guest Addition ISO file can be inserted into the VM in two ways;<\/p>\n\n\n\n
\nInsert Guest Additions ISO File Manually from Virtual Machine menu<\/a><\/li>\n\n\n\nInstall Guest Additions ISO from Linux Mint Repositories<\/a><\/li>\n<\/ol>\n\n\n\nInsert Guest Additions ISO File Manually<\/h4>\n\n\n\n Before you can insert Guest additions ISO file, ensure that your VM has an empty optical drive attached. You can check this from the storage settings, Controller:IDE<\/strong>.<\/p>\n\n\n\n <\/figure><\/a><\/div>\n\n\n\nNext, navigate to Menu bar on your VM and click Devices > Insert Guest Additions CD image<\/strong>.<\/p>\n\n\n\n <\/figure><\/a><\/div>\n\n\n\nWhen you insert the Guest additions ISO file, a dialog box is launched which prompts you to run or cancel the Guest Additions installer.<\/p>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\nClick Run<\/strong> to launch the installation of Guest additions on Linux Mint 21. You will be prompted to enter your password to authenticate the installation.<\/p>\n\n\n\nUpon successful authentication, the Guest Additions installation will now run.<\/p>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\nPress Enter to close the installation screen.<\/p>\n\n\n\n
Restart your virtual machine to reload the Kernel modules.<\/p>\n\n\n\n
sudo systemctl reboot -i<\/code><\/pre>\n\n\n\nYou can also install the Guest Additions from the terminal. When the Guest Addition ISO file is inserted, it is mounted on \/media\/$USER\/VBox_GAs_x.x.x<\/code>. Where x.x.x is the build version of VirtualBox.<\/p>\n\n\n\nTherefore press cancel when the installer dialog box opens up.<\/p>\n\n\n\n
Then navigate to the mount point of the guest additions and run the command below replacing the version number accordingly;<\/p>\n\n\n\n
cd \/media\/$USER\/VBox_GAs_7.0.6\nsudo .\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\nor simply run;<\/p>\n\n\n\n
sudo \/media\/$USER\/VBox_GAs_7.0.6\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\nInstalling Guest Additions ISO from APT Repositories<\/h4>\n\n\n\n It is also possible to install the Guest Additions ISO file from APT repos. Guest Additions ISO file is provided by the virtualbox-guest-additions-iso<\/code> package.<\/p>\n\n\n\nsudo apt-cache policy virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\nThe available version maybe a bit dated!<\/p>\n\n\n\n
See sample output of the command above as of this writing;<\/p>\n\n\n\n
\nvirtualbox-guest-additions-iso:\n Installed: (none)\n Candidate: 6.1.38-1~ubuntu1.22.04.1\n Version table:\n 6.1.38-1~ubuntu1.22.04.1 500\n 500 http:\/\/archive.ubuntu.com\/ubuntu jammy-updates\/multiverse amd64 Packages\n 6.1.34-1 500\n 500 http:\/\/archive.ubuntu.com\/ubuntu jammy\/multiverse amd64 Packages\n<\/code><\/pre>\n\n\n\nAs you can see, we have guest additions for VirtualBox 6.1.38 while we are running VirtualBox 7.0.6;<\/p>\n\n\n\n
If the right version is available, simply run the command below to install it.<\/p>\n\n\n\n
sudo apt install virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\nOtherwise, if it is a must that you use this method of installing Guest additions, then download the DEB binary from Debian SID repos;<\/p>\n\n\n\n
wget http:\/\/ftp.de.debian.org\/debian\/pool\/non-free\/v\/virtualbox-guest-additions-iso\/virtualbox-guest-additions-iso_7.0.6-1_all.deb -P \/tmp<\/code><\/pre>\n\n\n\nThe install the Guest additions ISO;<\/p>\n\n\n\n
sudo apt install \/tmp\/virtualbox-guest-additions-iso_7.0.6-1_all.deb<\/code><\/pre>\n\n\n\nWhen installed, the VirtualBox Guest Additions ISO is now available as \/usr\/share\/virtualbox\/VBoxGuestAdditions.iso<\/code>.<\/p>\n\n\n\nTo install it, you need to mount it.<\/p>\n\n\n\n
sudo mount -o loop \/usr\/share\/virtualbox\/VBoxGuestAdditions.iso \/media\/<\/code><\/pre>\n\n\n\nNext, run the installation.<\/p>\n\n\n\n
sudo \/media\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n\nVerifying archive integrity... 100% MD5 checksums are OK. All good.\nUncompressing VirtualBox 7.0.6 Guest Additions for Linux 100% \nVirtualBox Guest Additions installer\nVirtualBox Guest Additions: Starting.\nVirtualBox Guest Additions: Setting up modules\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.15.0-56-generic.\nupdate-initramfs: Generating \/boot\/initrd.img-5.15.0-56-generic\nI: The initramfs will attempt to resume from \/dev\/dm-1\nI: (\/dev\/mapper\/vgmint-swap_1)\nI: Set the RESUME variable to override this.\nVirtualBox Guest Additions: Running kernel modules will not be replaced until \nthe system is restarted\n<\/code><\/pre>\n\n\n\nOnce the installation is done, restart your system to reload kernel modules;<\/p>\n\n\n\n
sudo systemctl reboot -i<\/code><\/pre>\n\n\n\nYou should now be able to utilize the features brought about by the Guest additions on your virtual machine.<\/p>\n\n\n\n
For example, you should now be on full screen and can be able to enable shared clipboard, shared folders, drag and drop…<\/p>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\nFor full screen feature, if your VM doesn’t resize after reboot, then under view<\/strong> menu, click Auto-resize guest display<\/strong>, to disable and re-enable.<\/p>\n\n\n\nThat is all on our guide on how to install VirtualBox Guest Additions on Linux Mint 21.<\/p>\n\n\n\n
Other Tutorials<\/h3>\n\n\n\n Install VirtualBox Guest Additions on AlmaLinux<\/a><\/p>\n\n\n\nInstall VirtualBox Guest Additions on Oracle Linux 9<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Follow through this tutorial to learn how you can easily install VirtualBox guest additions on Linux Mint 21. VirtualBox guest additions consist of device drivers<\/p>\n","protected":false},"author":10,"featured_media":15670,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[36,121,46],"tags":[6422,6419,6420,6421],"class_list":["post-15664","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualization","category-howtos","category-virtualbox","tag-guest-addition-features","tag-install-guest-additions-on-linux-mint-21","tag-linux-mint-21-virtualbox-guest-additions","tag-linux-mint-virtualbox","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/15664"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=15664"}],"version-history":[{"count":8,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/15664\/revisions"}],"predecessor-version":[{"id":20710,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/15664\/revisions\/20710"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/15670"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=15664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=15664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=15664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}