How to Install VirtualBox on Kali Linux 2018.4? – In this article, we will examine how to install Oracle VM VirtualBox virtualization program on Kali Linux 2018.4.
How to Install VirtualBox on Kali Linux 2018.4?
Kali Linux is a Debian-based Linux distribution developed by Offensive Security. If you have not installed Kali Linux before, you can check out our article here.
Oracle VM VirtualBox is a free virtualization application that can be installed on Intel and AMD processor computers. VirtualBox virtualization program can be installed on operating systems such as Windows, Linux, macOS, Solaris.
Installing Oracle VM VirtualBox on Windows is very easy, but when you install VirtualBox on a Linux distribution, you may sometimes encounter installation errors.
In our previous articles, we installed VirtualBox on other Linux distributions. You can check our articles out in the links below.
If you are using Kali Linux 64 Bit, you need to download the Amd64 version. Kali Linux is Debian based, so please click on the Ubuntu 18.04 / Debian 10 AMD64 option to download VirtualBox.
Open the Terminal on Kali Linux and navigate to the location where you downloaded the VirtualBox. To start installing VirtualBox on Kali Linux, execute the dpkg -i virtualbox-5.2_5.2.20-125813-Ubuntu-bionic_amd64.deb command in Terminal.
As you can see in the image below, there was an error with dependent packets in the VirtualBox setup. To run VirtualBox in Kali, you must install these dependent packages.
To install libcurl4, libqt5opengl5, libqt5x11extras5, and libsdl1.2debian for VirtualBox installation, it is best to update Kali Linux repositories first. Execute nano /etc/apt/sources.list in Terminal and add the following addresses.
Update the Kali package lists using the apt-get update command.
In order to install VirtualBox on Kali Linux, execute apt-get install dkms build-essential in Terminal to install dependent packages.
apt-get install dkms build-essential
If you get an error like this in the installation, execute apt –fix-broken install.
After you install VirtualBox on Kali Linux, type virtualbox in the terminal and press Enter to run the program. If you encounter a kernel (4.15.0-kali2-amd64) error while running VirtualBox as in the image below, proceed to the next step.
To fix the kernel (4.15.0-kali2-amd64) error on Kali Linux, first download the package from here to your computer and then execute the dpkg -i linux-headers-4.15-0-kali2-amd64.deb command in Terminal.
dpkg -i linux-headers-4.15-0-kali2-amd64.deb
When installing the kernel (4.15.0-kali2-amd64) package, you can check the following image to see if there are any required packages. These packages; linux-headers-4.15.0-kali2-common, linux-kbuild-4.15, and linux-compiler-gcc-7-x86.
You can find linux-headers-4.15.0-kali2-common, linux-kbuild-4.15, and linux-compiler-gcc-7-x86 in the folder you have downloaded. Install these dependent packages on your system as follows.
After you successfully install VirtualBox on Kali Linux, you can learn the version of the program from Help / About.
How to Install Oracle VM VirtualBox 5.2.20 on Kali Linux 2018.4 ⇒ Video
You can watch the video below to install VirtualBox in Kali Linux step by step, and you can also subscribe to our YouTubechannel to support us!
In this article, we have examined how to install Oracle VM VirtualBox 5.2.20 on Kali Linux 2018.4 and how to install dependent packages step by step. Thanks for following us!
If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!
Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!
Articles Related to How to Install VirtualBox on Kali Linux