This article shows you how to set up Oracle VM VirtualBox 6.1, a free download that allows you to create virtual machines on a Kali Linux 2022 computer, run operating systems such as Windows or Linux on them, and run them virtually.
You can use a different operating system on your operating system by installing Oracle VM VirtualBox on your Kali computer. Thus, there is no need to reboot your host computer, and you do not need to set up a system with dual-boot.
The performance of the operating systems you will install on virtual machines depends on the hardware features of your host computer. You can use your VMs more efficiently if you have a new computer.
Follow this video tutorial or the steps below to install and use Oracle software on your Kali Linux operating system.
How to Run the VirtualBox 6 Version on Kali Linux 2022
Step 1: Open your default web browser on your Kali PC, type https://www.virtualbox.org/ in the address line, and visit the website.
Step 2: Click Download VirtualBox 6.1 on the VirtualBox download website and click Debian 11 on the website where the opened Linux distributions are available.
Step 3: Save the VirtualBox.deb setup file to your computer and wait for the download to complete.
Step 4: Open the terminal and update the configuration file containing the packages installed on your system with the sudo apt update command after downloading.
sudo apt update
Step 5: Run the sudo apt install build-essential dkms command to install the required kernel headers for Oracle software.
sudo apt install build-essential dkms
Step 6: Go to the location where you downloaded VirtualBox and install the program using the sudo dpkg -i FileName.deb command.
Step 7: When you see that additional packages are not installed on your system during installation, you must install these packages manually or by adding the Debian repository address. To add the Debian Bullseye repo address to your system, run the following command in the terminal.
echo "deb http://ftp.us.debian.org/debian bullseye main" | sudo tee -a /etc/apt/sources.list
Step 8: After adding the Debian repo address to sources.list, update the package list again using the sudo apt update command. Then run sudo apt install -f to install additional packages.
sudo apt install -f
Step 9: If you see the Linux-header-5.15.0-kali3-amd64 error this time in the VirtualBox installation, you should also download the relevant deb package and its dependent packages. Run the following command to download and install all linux-header-5.15.0-kali3-amd64, common, and kbuilt packages.
wget http://http.kali.org/pool/main/l/linux/linux-headers-5.18.0-kali5-amd64_5.18.5-1kali6_amd64.deb | wget http://http.kali.org/pool/main/l/linux/linux-headers-5.18.0-kali5-common_5.18.5-1kali6_all.deb | wget http://http.kali.org/pool/main/l/linux/linux-kbuild-5.18_5.18.5-1kali6_amd64.deb | wget http://http.kali.org/pool/main/l/linux/linux-compiler-gcc-11-x86_5.18.5-1kali6_amd64.deb
Step 10: After downloading all the required deb packages, go to the download location and install all packages using the sudo dpkg -i *.deb command.
sudo dpkg -i *.deb
Step 11: After installing the additional packages, run the virtualbox command in the terminal and start the program. This time, you may find that you need to update the Linux kernels. Close the program and compile the Linux kernels using the terminal’s sudo /sbin/vboxconfig command.
sudo /sbin/vboxconfig
Step 12: When you rerun VirtualBox after compilation, you will not encounter an error this time.
How to Install Extension Pack
To create a virtual machine on your Kali system, you must also install the Extension Pack software after installing the VirtualBox virtualization program.
Step 1: Depending on the version of VirtualBox you have installed, run the following command in the terminal to download extpack.
wget https://download.virtualbox.org/virtualbox/6.1.38/Oracle_VM_VirtualBox_Extension_Pack-6.1.38.vbox-extpack
Step 2: After downloading the ExtensionPack.vbox-extpack package, run the sudo vboxmanage extpack install filename.vbox-extpack command to install it.
sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.38.vbox-extpack