{"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
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
You can read more about these features on the VirtualBox User Manual<\/a>.<\/p>\n\n\n\n There are two ways in which you can install VirtualBox guest additions.<\/p>\n\n\n\n X11 Guest Utilities package for VirtualBox are provided by the Check if you Kali Linux repos installed;<\/p>\n\n\n\n If the command output is empty, run the command below to install Kali Linux rolling release repositories.<\/p>\n\n\n\n Run system package cache update once the repos are installed.<\/p>\n\n\n\n Install VirtualBox x11 guest utilities.<\/p>\n\n\n\n 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 If the screen doesn’t resize itself to fullscreen on reboot, you can toggle the screen auto-resize by navigating to VirtualBox VM menu 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 Guest additions image can be inserted into a VirtualBox virtual machine manually via the VM menu or by installing the 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 To verify if these build requirements have already been installed, run the command below;<\/p>\n\n\n\n As you can see, we only have the Once the installation is done, insert the Guest Additions ISO into the vm from the Ensure that you have unallocated (empty) controller IDE from virtual machine storage settings to insert the image.<\/strong><\/p>\n\n\n\n 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 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 You can as well install the VirtualBox Guest additions iso\/image file from Kali Linux repositories;<\/p>\n\n\n\n When installed, the VirtualBox Guest Additions ISO is now available as To install the Guest Additions ISO, you need to mount it.<\/p>\n\n\n\n If you used the manual method of inserting the guest additions iso, the image can be mounted on either, 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 Once the installation is done, restart the system to reload the kernel modules and apply the changes.<\/p>\n\n\n\n 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) 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 Install Kali Linux 2020.3 on VirtualBox<\/a><\/p>\n\n\n\n Install VirtualBox Guest Additions on Fedora 31\/32<\/a><\/p>\n\n\n\n Upgrade VirtualBox 6.0 to 6.1 on Ubuntu Systems<\/a><\/p>\n\n\n\n Install VirtualBox Guest Additions on Ubuntu 20.04<\/a><\/p>\n\n\n\nInstall VirtualBox Guest Additions on Kali Linux<\/h2>\n\n\n\n
\n
Install via x11 Guest Utilities package<\/h3>\n\n\n\n
virtualbox-guest-x11<\/strong><\/code> package. To install this package, you need to have the Kali Linux repositories installed.<\/p>\n\n\n\n
grep -v '#' \/etc\/apt\/sources.list | sort -u<\/code><\/pre>\n\n\n\n
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
cat > \/etc\/apt\/sources.list << '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
apt update<\/code><\/pre>\n\n\n\n
apt install virtualbox-guest-x11<\/code><\/pre>\n\n\n\n
View > Auto-resize Guest display<\/strong><\/code>.<\/p>\n\n\n\n
<\/figure>\n\n\n\n
Install via Guest Additions Image<\/h3>\n\n\n\n
Insert the Guest Additions Image into the Kali Linux 2020.3 virtual machine<\/h4>\n\n\n\n
virtualbox-guest-additions-iso<\/code> package.<\/p>\n\n\n\n
Insert Guest Additions Image manually<\/h5>\n\n\n\n
sudo dpkg -l | grep -E \"dkms|linux-headers-$(uname -r)|build-essential\"<\/code><\/pre>\n\n\n\n
ii build-essential 12.8 amd64 Informational list of build-essential packages<\/code><\/pre>\n\n\n\n
build-essential<\/strong><\/code> tools installed. The
ii<\/code> means that the package is installed. Install the missing packages;<\/p>\n\n\n\n
cat > \/etc\/apt\/sources.list << '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
sudo apt update -y<\/code><\/pre>\n\n\n\n
sudo apt install dkms linux-headers-$(uname -r) build-essential<\/code><\/pre>\n\n\n\n
menu bar > Devices > Insert Guest Additions CD Image...<\/code><\/strong><\/p>\n\n\n\n
Insert Guest additions Image by installing it<\/h5>\n\n\n\n
sudo apt install virtualbox-guest-additions-iso<\/code><\/pre>\n\n\n\n
\/usr\/share\/virtualbox\/VBoxGuestAdditions.iso<\/strong><\/code>.<\/p>\n\n\n\n
sudo mount -o loop \/usr\/share\/virtualbox\/VBoxGuestAdditions.iso \/media\/cdrom<\/code><\/pre>\n\n\n\n
\/media\/{cdrom,cdrom0,cdrom1}<\/strong><\/code>. You can find the mount point using d
f -h<\/code><\/strong> command.<\/em><\/p>\n\n\n\n
bash \/media\/cdrom\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n
Kali Linux 2020.3 FullScreen on VirtualBox<\/h3>\n\n\n\n
View -> Auto-resize Guest Display<\/strong><\/code> on the VM menu bar to set right VM resolution.<\/p>\n\n\n\n
<\/figure>\n\n\n\n
Related Tutorials<\/h3>\n\n\n\n