How to Install VirtualBox 6.1 on Kali Linux 2022

This article shows you how to set up Oracle VM VirtualBox 6.1.38, a free download that allows you to create virtual machines on a Kali Linux 2022.3 computer, run operating systems such as Windows or Linux on them and run them virtually.

You can use an additional 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. If you have a new generation computer, you can use your VMs more efficiently.

You can follow this video tutorial or the steps below to install and use Oracle software on your Kali Linux operating system.

Step 1: Open your default web browser on your Kali PC and 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: After the download, open the terminal and update the configuration file containing the packages installed on your system with the sudo apt update command.

sudo apt update

Step 5: Run sudo apt install build-essential dkms command to install required kernel headers for Oracle software.

sudo apt install build-essential dkms

Step 6: Go to the location where you downloaded VirtualBox and start the installation of 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 start the installation of 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 sudo /sbin/vboxconfig command in the terminal.

sudo /sbin/vboxconfig

Step 12: When you run VirtualBox again after compilation, you will not encounter an error this time.

How to Install Extension Pack

To create a virtual machine on your Kali system, after installing the VirtualBox virtualization program, you must also install the Extension Pack software.

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

   Related Articles

1. How to Setup VirtualBox on Kali
2. How to Setup VirtualBox on Linux Mint
3. How to Setup VirtualBox on Ubuntu
4. How to Install Extension Pack
5. How to Create a Virtual Machine

 

tolgabagci

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]