How to Install VirtualBox on Kali Linux 2018.4?

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?

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.

In this article, we are going to install Oracle VM VirtualBox on Kali Linux 2018.4 version step by step.

How to Install VirtualBox 5.2.20 on Kali Linux 2018.4?

After installing Kali Linux, you need to install Oracle VM VirtualBox or VMware Workstation to install and run a Windows, Linux-based operating system or macOS virtual machine on your system.

VirtualBox is the most preferred application because it is a free virtualization program. To install VirtualBox on Kali Linux, follow the steps below.

   Step 1

To download VirtualBox for Kali Linux, visit https://www.virtualbox.org/wiki/Downloads and click on Linux distributions.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 2

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.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 3

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.

dpkg -i virtualbox-5.2_5.2.20-125813-Ubuntu-bionic_amd64.deb

 

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.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 4

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.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 5

Update the Kali package lists using the apt-get update command.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 6

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.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 7

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.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 8

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.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 9

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.

How to Install VirtualBox on Kali Linux 2018.4?

   Step 10

After you successfully install VirtualBox on Kali Linux, you can learn the version of the program from Help / About.

How to Install VirtualBox on Kali Linux 2018.4?

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 YouTube channel to support us!

  Final Word

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


How to Install Ubuntu on VirtualBox?
♦ How to Install VirtualBox Extension Pack in Linux Mint?
♦ How to Re-Add Virtual Machines in VirtualBox?
♦ How to Install VirtualBox Extension Pack in Debian?
♦ How to Install Debian 9 in VirtualBox on Windows 10?

 

   Products Related to How to Install VirtualBox on Kali Linux

Add a Comment

Your email address will not be published. Required fields are marked *