{"id":10490,"date":"2021-09-21T20:44:02","date_gmt":"2021-09-21T17:44:02","guid":{"rendered":"https:\/\/kifarunix.com\/?p=10490"},"modified":"2024-03-18T13:52:46","modified_gmt":"2024-03-18T10:52:46","slug":"install-virtualbox-guest-additions-on-kali-linux-2021-3","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-kali-linux-2021-3\/","title":{"rendered":"Install VirtualBox Guest Additions on Kali Linux 2021.3"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to install VirtualBox guest additions on Kali Linux 2021.3. <\/p>\n\n\n\n<p>Guest additions offers many other features;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Run VM in  fullscreen mode<\/li>\n\n\n\n<li>Mouse pointer integration<\/li>\n\n\n\n<li>Shared folders for easy sharing of files between the host and the guest<\/li>\n\n\n\n<li>Ensures better and accelerated video performance.<\/li>\n\n\n\n<li>Seamless windows integration<\/li>\n\n\n\n<li>Generic host\/guest communication channels that enables you to control and manage guest execution.<\/li>\n\n\n\n<li>Provides Host-Guest time synchronization.<\/li>\n\n\n\n<li>Shared clipboard between host and guest vm.<\/li>\n\n\n\n<li>Automated logins.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Installing VirtualBox Guest Additions on Kali Linux<\/h2>\n\n\n\n<p>There are two ways in which you can install VirtualBox guest additions;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#install-guest-additions-via-virtualbox-guest-x11\">Via X11 guest utilities for package for VirtualBox<\/a><\/li>\n\n\n\n<li><a href=\"#install-guest-additions-via-guest-additions-image\">Via VirtualBox Guest Additions Image<\/a><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-guest-additions-via-virtualbox-guest-x11\">Install VirtualBox Guest Additions via x11 Guest Utilities package<\/h3>\n\n\n\n<p>The <code><strong>virtualbox-guest-x11<\/strong><\/code> package X11 Guest Utilities. <\/p>\n\n\n\n<p>To install this package, you need to have the Kali Linux repositories installed.<\/p>\n\n\n\n<p>Check if you Kali Linux repos installed;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grep -v '#' \/etc\/apt\/sources.list | sort -u<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/http.kali.org\/kali kali-rolling main non-free contrib\ndeb-src http:\/\/http.kali.org\/kali kali-rolling main non-free contrib<\/code><\/pre>\n\n\n\n<p>If the command output is empty, run the command below to install Kali Linux rolling release repositories.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat &gt; \/etc\/apt\/sources.list &lt;&lt; 'EOL'\ndeb http:\/\/http.kali.org\/kali kali-rolling main non-free contrib\ndeb-src http:\/\/http.kali.org\/kali kali-rolling main non-free contrib\nEOL<\/code><\/pre>\n\n\n\n<p>Run system package cache update once the repos are installed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>Install VirtualBox x11 guest utilities.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install virtualbox-guest-x11<\/code><\/pre>\n\n\n\n<p>Once the installation is done, reboot the system;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reboot -i<\/code><\/pre>\n\n\n\n<p>Your Kali Linux 2021.3 is now running in fullscreen on VirtualBox.<\/p>\n\n\n\n<p>If the screen doesn&#8217;t automatically resize to fullscreen on reboot, you can toggle the screen auto-resize by navigating to VirtualBox VM menu <code><strong>View &gt; Auto-resize Guest display<\/strong><\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"572\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-linux-2021.3-virtualbox-guest-additions.png\" alt=\"\" class=\"wp-image-10493\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-linux-2021.3-virtualbox-guest-additions.png?v=1632243981 1910w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-linux-2021.3-virtualbox-guest-additions-768x230.png?v=1632243981 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-linux-2021.3-virtualbox-guest-additions-1536x460.png?v=1632243981 1536w\" sizes=\"(max-width: 1910px) 100vw, 1910px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-guest-additions-via-guest-additions-image\">Install VirtualBox Guest Additions via Guest Additions ISO<\/h3>\n\n\n\n<p>To install VirtualBox Guest Additions via Guest additions ISO file, you need to insert the guest additions iso\/image file into your Kali Linux 2021.3 virtual machine.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Linux Headers,  DKMS and Build Tools<\/h4>\n\n\n\n<p>To verify if these build requirements have already been installed, run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo dpkg -l | grep -E \"dkms|linux-headers-$(uname -r)|build-essential\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ii build-essential 12.9 amd64 Informational list of build-essential packages<\/code><\/pre>\n\n\n\n<p>The&nbsp;<code>ii<\/code>&nbsp;means that the the <code><strong>build-essential<\/strong><\/code> tools is installed.<\/p>\n\n\n\n<p>Install the missing packages;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat &gt; \/etc\/apt\/sources.list &lt;&lt; 'EOL'\ndeb http:\/\/http.kali.org\/kali kali-rolling main non-free contrib\ndeb-src http:\/\/http.kali.org\/kali kali-rolling main non-free contrib\nEOL<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update -y<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install dkms linux-headers-$(uname -r) build-essential<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Insert the Guest Additions Image into the Kali Linux 2021.3 virtual machine<\/h4>\n\n\n\n<p>Guest additions image can be inserted into a VirtualBox virtual machine manually via the VM menu or by installing the <code>virtualbox-guest-additions-iso<\/code> package.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Insert Guest Additions Image manually<\/h4>\n\n\n\n<p>Guest additions image can be manually inserted into a vm via the VM virtualbox menu.<\/p>\n\n\n\n<p>Before the image can be inserted into the vm, <strong>ensure that you have unallocated (empty) controller IDE from virtual machine storage settings to insert the image.<\/strong><\/p>\n\n\n\n<p>Once the installation is done, insert the Guest Additions ISO into the vm from the <strong><code>menu bar &gt; Devices &gt; Insert Guest Additions CD Image...<\/code><\/strong><\/p>\n\n\n\n<p>Once you insert the image, a dialog box which prompts you to run or cancel the Guest Additions installer is launched.<\/p>\n\n\n\n<p>If no dialog is launch upon Guest addition image insertion, simply double click the image icon the desktop to mount it.<\/p>\n\n\n\n<p>The virtualbox guest additions image can be mounted on either, <code><strong>\/media\/{cdrom,cdrom0,cdrom1}<\/strong><\/code>.<\/p>\n\n\n\n<p>You can find the mount point using <strong><code>df -h<\/code><\/strong> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -hT<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Filesystem     Type      Size  Used Avail Use% Mounted on\nudev           devtmpfs  957M     0  957M   0% \/dev\ntmpfs          tmpfs     199M 1000K  198M   1% \/run\n\/dev\/sda1      ext4       15G  9.7G  4.4G  70% \/\n...\n...\n<strong>\/dev\/sr1       iso9660    59M   59M     0 100% \/media\/cdrom1<\/strong><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Insert Guest additions Image by installing it<\/h4>\n\n\n\n<p>You can as well install the VirtualBox Guest additions iso\/image file from Kali Linux repositories;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\n<p>When installed, the VirtualBox Guest Additions ISO is now available as&nbsp;<code><strong>\/usr\/share\/virtualbox\/VBoxGuestAdditions.iso<\/strong><\/code>.<\/p>\n\n\n\n<p>To install the Guest Additions ISO, you need to mount it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mount -o loop \/usr\/share\/virtualbox\/VBoxGuestAdditions.iso \/media\/cdrom<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Installing VirtualBox Guest Additions<\/h4>\n\n\n\n<p>Next, run the Guest additions installer for Linux on Kali Linux 2021.3 VirtualBox vm.<\/p>\n\n\n\n<p><strong>Replace the path to the Guest additions installer appropriately.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>bash \/media\/cdrom\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n<p>Once the installation is done, restart the system to reload the kernel modules and apply the changes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reboot -i<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Kali Linux 2021.3 FullScreen on VirtualBox<\/h3>\n\n\n\n<p>Your Kali Linux 2021.3 should now be running in fullscreen. If upon system reboot the screen doesn\u2019t auto-resize automatically, be sure to toggle (off\/on, so to say) &nbsp;<code><strong>View -&gt; Auto-resize Guest Display<\/strong><\/code>&nbsp;on the VM menu bar to set right VM resolution.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1905\" height=\"668\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-2021.3-full-screen.png\" alt=\"\" class=\"wp-image-10494\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-2021.3-full-screen.png?v=1632245909 1905w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-2021.3-full-screen-768x269.png?v=1632245909 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/kali-2021.3-full-screen-1536x539.png?v=1632245909 1536w\" sizes=\"(max-width: 1905px) 100vw, 1905px\" \/><\/figure>\n\n\n\n<p>That concludes our guide.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/easily-install-kali-linux-2021-3-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">Easily Install Kali Linux 2021.3 on VirtualBox<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/upgrade-virtualbox-6-0-to-6-1-on-ubuntu-systems\/\" target=\"_blank\" rel=\"noreferrer noopener\">Upgrade VirtualBox 6.0 to 6.1 on Ubuntu Systems<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install VirtualBox Guest Additions on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/use-virtualbox-vms-on-kvm\/\" target=\"_blank\" rel=\"noreferrer noopener\">Use VirtualBox VMs on KVM<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install VirtualBox guest additions on Kali Linux 2021.3. Guest additions offers many other features; Installing VirtualBox Guest<\/p>\n","protected":false},"author":3,"featured_media":10480,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[36,121,46],"tags":[4108,4107,1945],"class_list":["post-10490","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualization","category-howtos","category-virtualbox","tag-install-virtualbox-guest-additions-on-kali-linux-2021-3","tag-kali-linux-2021-3","tag-virtualbox-guest-additions","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\/10490"}],"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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=10490"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10490\/revisions"}],"predecessor-version":[{"id":21654,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10490\/revisions\/21654"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/10480"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=10490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=10490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=10490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}