{"id":6790,"date":"2020-08-26T20:57:17","date_gmt":"2020-08-26T17:57:17","guid":{"rendered":"https:\/\/kifarunix.com\/?p=6790"},"modified":"2024-03-14T22:21:03","modified_gmt":"2024-03-14T19:21:03","slug":"install-virtualbox-guest-additions-on-kali-linux-2020-3","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-kali-linux-2020-3\/","title":{"rendered":"Install VirtualBox Guest Additions on Kali Linux 2020.3"},"content":{"rendered":"\n<p>In order to set your Kali Linux running on VirtualBox in fullscreen mode, you need Guest additions installed on the VM. In this tutorial, you will learn how to install VirtualBox guest additions on Kali Linux 2020.3. Apart from enabling the virtual machine to have a full screen view, guest additions offers many other features;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\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<p>You can read more about these features on the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/download.virtualbox.org\/virtualbox\/6.0.14\/UserManual.pdf\" target=\"_blank\">VirtualBox User Manual<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install 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 via x11 Guest Utilities package<\/h3>\n\n\n\n<p>X11 Guest Utilities package for VirtualBox are provided by the <code><strong>virtualbox-guest-x11<\/strong><\/code> package. 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 and your Kali Linux 2020.3 is now running in fullscreen on VirtualBox.<\/p>\n\n\n\n<p>If the screen doesn&#8217;t resize itself 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=\"1918\" height=\"510\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox-guest-additions.png\" alt=\"\" class=\"wp-image-6814\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox-guest-additions.png?v=1598459799 1918w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox-guest-additions-768x204.png?v=1598459799 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox-guest-additions-1536x408.png?v=1598459799 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-guest-additions-via-guest-additions-image\">Install via Guest Additions Image<\/h3>\n\n\n\n<p>If you want to take this long route, then you first need to insert the guest additions iso\/image file into your Kali Linux 2020.3 virtual machine.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Insert the Guest Additions Image into the Kali Linux 2020.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<h5 class=\"wp-block-heading\">Insert Guest Additions Image manually<\/h5>\n\n\n\n<p>Guest additions image can be manually inserted into a vm via the VM virtualbox menu. Before the image can be inserted into the vm, you need to install required build tools, the Linux kernel headers and the support modules, if not already installed.<\/p>\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-preformatted\"><code>ii build-essential 12.8 amd64 Informational list of build-essential packages<\/code><\/pre>\n\n\n\n<p>As you can see, we only have the <code><strong>build-essential<\/strong><\/code> tools installed. The&nbsp;<code>ii<\/code>&nbsp;means that the package is installed. 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-preformatted\"><code>sudo apt update -y<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install dkms linux-headers-$(uname -r) build-essential<\/code><\/pre>\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><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 you insert the image, a dialog box which prompts you to run or cancel the Guest Additions installer is launched. You can click run or simply cancel and do the installation of VirtualBox guest additions on Kali Linux 2020.3  from the command line;<\/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<h5 class=\"wp-block-heading\">Insert Guest additions Image by installing it<\/h5>\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-preformatted\"><code>sudo mount -o loop \/usr\/share\/virtualbox\/VBoxGuestAdditions.iso \/media\/cdrom<\/code><\/pre>\n\n\n\n<p><em>If you used the manual method of inserting the guest additions iso, the image can be mounted on either, <code><strong>\/media\/{cdrom,cdrom0,cdrom1}<\/strong><\/code>. You can find the mount point using <strong>d<code>f -h<\/code><\/strong> command.<\/em><\/p>\n\n\n\n<p>Next, run the Guest additions installer for Linux on Kali Linux 2020.3 VirtualBox vm. Replace the path to the Guest additions installer appropriately.<\/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<h3 class=\"wp-block-heading\">Kali Linux 2020.3 FullScreen on VirtualBox<\/h3>\n\n\n\n<p>Your Kali Linux 2020.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=\"1919\" height=\"644\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox.png\" alt=\"Install VirtualBox Guest Additions on Kali Linux 2020.3\" class=\"wp-image-6815\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox.png?v=1598463086 1919w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox-768x258.png?v=1598463086 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/08\/kali-linux-virtualbox-1536x515.png?v=1598463086 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/figure>\n\n\n\n<p>That is how easy it is install VirtualBox Guest Additions on Kali Linux and run it on full-screen. Enjoy<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-kali-linux-2020-3-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Kali Linux 2020.3 on VirtualBox<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-fedora-31-32\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install VirtualBox Guest Additions on Fedora 31\/32<\/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 order to set your Kali Linux running on VirtualBox in fullscreen mode, you need Guest additions installed on the VM. In this tutorial, you<\/p>\n","protected":false},"author":1,"featured_media":10480,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,46,36],"tags":[1942,1928,1943,1944,1945],"class_list":["post-6790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-virtualbox","category-virtualization","tag-install-virtualbox-guest-additions-in-kali-linux","tag-kali-linux-2020-3","tag-kali-linux-virtualbox-fullscreen","tag-kali-linux-virtualbox-guest-additions","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\/6790"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=6790"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6790\/revisions"}],"predecessor-version":[{"id":21464,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6790\/revisions\/21464"}],"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=6790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=6790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=6790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}