{"id":9958,"date":"2021-09-20T10:20:03","date_gmt":"2021-09-20T10:20:03","guid":{"rendered":"https:\/\/linuxways.net\/?p=9958"},"modified":"2021-09-20T10:21:01","modified_gmt":"2021-09-20T10:21:01","slug":"how-to-install-virtualbox-guest-additions-on-debian-11","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-virtualbox-guest-additions-on-debian-11\/","title":{"rendered":"How to Install VirtualBox Guest Additions on Debian 11"},"content":{"rendered":"<p>When a guest system is installed on VirtualBox, several features are usually disabled or missing. In addition, the screen size is usually scaled-down instead of being fullscreen and this, among many other shortcomings, impacts the overall user experience. VirtualBox Guest Additions is a set of device drivers and applications which are designed to help achieve enhanced usability and improve the overall user experience of the guest system.<\/p>\n<p>At a glance, VirtualBox guest Additions provide the following salient enhancements:<\/p>\n<ol>\n<li>Shared clipboard between the guest vm and the host system.<\/li>\n<li>Smooth mouse pointer integration.<\/li>\n<li>Enhanced and accelerated video performance.<\/li>\n<li>Shared folders which enable sharing of files and directories between host and guest<\/li>\n<li>Time synchronization between the host and the guest.<\/li>\n<li>Additional generic communication channels that offer better control of the guest by the user.<\/li>\n<\/ol>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>This guide requires you to have installed Debian 11 on VirtualBox hypervisor. This is the guest system. In addition, ensure that you have a sudo user already configured on your virtual machine instance.<\/p>\n<h2><strong>Step 1: Update Debian 11<\/strong><\/h2>\n<p>It\u2019s always a good idea to begin by updating the system by upgrading all the packages. But first, refresh the package lists.<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"184\" class=\"wp-image-9959\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-161.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-161.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-161-300x70.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-161-768x179.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>Next upgrade the system including the kernel and existing packages.<\/p>\n<pre><strong>$ sudo apt upgrade<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"266\" class=\"wp-image-9960\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-162.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-162.png 776w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-162-300x103.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-162-768x263.png 768w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/p>\n<h2><strong>Step 2: Install dependencies<\/strong><\/h2>\n<p>To install VirtualBox, a couple of dependencies are required. You need to install the DKMS (Dynamic kernel Module Support) program that is used for generating kernel modules, the kernel headers, and build tools.<\/p>\n<pre><strong>$ sudo apt install dkms linux-headers-$(uname -r) build-essential<\/strong><\/pre>\n<p>The command installs Linux headers , compiler tools, and several other packages.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"330\" class=\"wp-image-9961\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-163.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-163.png 777w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-163-300x127.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-163-768x326.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/p>\n<h2><strong>Step 2: Install VirtualBox Guest Additions<\/strong><\/h2>\n<p>Once the installation of the dependencies is done, head back to the Virtual machine\u2019s control panel and hit the \u2018<strong>Settings<\/strong>\u2019 tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"168\" class=\"wp-image-9962\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-164.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-164.png 880w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-164-300x57.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-164-768x147.png 768w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/p>\n<p>Navigate and hit \u2018<strong>Devices<\/strong>\u2019 and from the pull-down menu, select the \u2018<strong>Insert Guest Additions CD Image<\/strong>\u2019 option<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"267\" class=\"wp-image-9963\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-165.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-165.png 357w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-165-300x224.png 300w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/p>\n<p>This inserts the VirtualBox Guest Addition ISO file on the guest machine. You can verify this by launching the File Manager and navigating to the left sidebar.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"620\" class=\"wp-image-9964\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-166.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-166.png 966w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-166-300x193.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-166-768x493.png 768w\" sizes=\"auto, (max-width: 966px) 100vw, 966px\" \/><\/p>\n<p>The next step is to mount it in <strong>\/mnt <\/strong>directory as shown.<\/p>\n<pre><strong>$ sudo mount \/dev\/cdrom \/mnt<\/strong><\/pre>\n<p>You can confirm the contents as follows using the <strong>ls <\/strong>command.<\/p>\n<pre><strong>$ ls -l \/mnt<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"402\" class=\"wp-image-9965\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-167.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-167.png 761w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-167-300x158.png 300w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/p>\n<p>Of interest is the <strong>VBoxLinuxAdditions.run <\/strong>script. This is what we need to run. So, navigate to the <strong>\/mnt<\/strong> directory.<\/p>\n<pre><strong>$ cd \/mnt<\/strong><\/pre>\n<p>And run the installation script.<\/p>\n<pre><strong>$ sudo .\/VBoxLinuxAdditions.run <\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"379\" class=\"wp-image-9966\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-168.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-168.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-168-300x144.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-168-768x370.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>Finally, restart your Debian 11 instance to finish running the Guest Additions kernel modules.<\/p>\n<pre><strong>$ sudo reboot <\/strong><\/pre>\n<p>Upon logging in, you\u2019ll notice that your guest has scaled to full screen. You can now enjoy other features provided by the Guest Additions such as shared clipboard and file sharing with the host system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1366\" height=\"661\" class=\"wp-image-9967\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-169.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-169.png 1366w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-169-300x145.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-169-1024x496.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-169-768x372.png 768w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>If you came this far, then congratulations! You have successfully installed VirtualBox Guest Additions on Debian 11.<\/p>","protected":false},"excerpt":{"rendered":"<p>When a guest system is installed on VirtualBox, several features are usually disabled or missing. In addition, the screen size is usually scaled-down instead of being fullscreen and&hellip;<\/p>","protected":false},"author":1,"featured_media":10293,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[521,108],"class_list":["post-9958","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-11","tag-virtualbox"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=9958"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9958\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/10293"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=9958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=9958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=9958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}