How to Install VirtualBox 6.1.2 on Kali Linux 2020.1

This video shows the Oracle VM VirtualBox 6.1.2 installation steps that allow you to run and use Windows, Linux and even macOS virtual machines on Linux PC.

How to Run VirtualBox 6.1.x on Kali Linux 2020.x

To install VirtualBox on the 2020.1 version of Kali, which was customized with the Rootless user account on January 28, 2020:

Step 1: First, visit the VirtualBox site by clicking here. After opening the website, click on Linux Distributions from the Download section.

Step 2: Click Debian 10 on the Linux Hosts download page.

Step 3: After downloading Oracle software for Kali to your computer, open Terminal and run the cd Downloads command.

cd Downloads

Step 4: Run the sudo dpkg -i virtualbox-6.1_6.1.2-135662_Debian_buster_amd64.deb command in Terminal to install the setup package of the Oracle virtual machine program with the DEB extension.

sudo dpkg -i virtualbox-6.1_6.1.2-135662_Debian_buster_amd64.deb

Step 5: When installing VirtualBox, when you see that libsdl1.2debian and libvpx5 dependent packages are not installed, you should download and install these packages. To install these dependent packages to Kali, run the following commands and download the related packages.


Step 6: After downloading the dependent packages for Oracle VBox, run the following commands in order to install these packages:

sudo dpkg -i libsdl1.2debian_1.2.15+dfsg2-4_amd64.deb
sudo dpkg -i libvpx5_1.7.0-3+deb10u1_amd64.deb

Step 7: After installing the related packages, try to install VirtualBox again. If you see the “Please install the Linux kernel header files matching the current kernel for adding new hardware support to the system.” error message, run the command below to install the Linux Kernel headers.

sudo apt-get install dkms build-essential

Step 8: After installing the DKMS package, you can now run Oracle software using the virtualbox command in Terminal.

How to Build VirtualBox 5.x on Kali Linux 2019.x

To install Oracle VM VBox on Kali Linux:

Step 1: If you have not installed Kali Linux before, please refer to the video below.

Video ➦

Step 2: After installing Kali, one of the first things you need to do is install the VirtualBox virtualization program.

Step 3: Installing VirtualBox in Linux system is simple and easy. To install VirtualBox, first, open your Kali Linux system and download VirtualBox from the following link to your computer.

Step 4: After downloading VirtualBox for Kali to your computer, open the Terminal by pressing CTRL + Alt + T together.

Step 5: Execute “cd Downloads” in the terminal.

➦ cd Downloads

Step 6: Execute the command “dpkg -i FileName.deb” in Terminal to start the VirtualBox installation.

➦ dpkg -i FileName.deb

Step 7: If you get the error of the following dependent packages when you install it, you need to install your required packages.

➦ libcurl4
➦ libqt5opengl5
➦ libqt5x11extras5
➦ libsdl1.2debian

Step 8: First, update the Kali Linux repositories as follows.

➦ nano /etc/apt/sources.list

deb kali-rolling main non-free contrib
deb-src kali-rolling main non-free contrib

Step 9: Execute the “apt-get update” command to update the Kali repositories.

➦ apt-get update

Step 10: In order to run VirtualBox in Kali, install the dependent packages using the “apt-get install dkms build-essential” command.

➦ apt-get install dkms build-essential

Step 11: If you need to verify some packages, run the command “apt –fix-broken install” in Terminal.

➦ apt –fix-broken install

Step 12: If you still do not run VirtualBox after you have done all of the above steps and you get the error “kernel (4.15.0-kali2-amd64)”, install the packages that you downloaded to your computer from the following link.

➦ dpkg -i linux-headers-4.15.0-kali2-amd64.deb
➦ dpkg -i linux-headers-4.15.0-kali2-common_4.15.11-1kali1_all.deb
➦ dpkg -i linux-kbuild-4.15_4.15.11-1kali1_amd64.deb
➦ dpkg -i linux-compiler-gcc-7-x86_4.17.8-1kali1_amd64.deb

Step 13: Once you have successfully installed the latest version of VirtualBox on Kali, don’t forget to install the Extension Pack for guest machines!

Step 14: Watch the entire video to install Oracle VM VirtualBox 5.x step by step!

   Related Posts

1. How to Install VM Tools in Windows 8
2. How to Install VirtualBox in Linux Mint
3. How to Install VMware ESXi
4. How to Install VMware in Ubuntu
5. How to Install Ubuntu in VMware



In my personal blog, I will explain the solutions to the problems I encounter in the system, network, and information technologies for you. If you want to contact me or consult about a problem, you can send an e-mail to [email protected]