How To

How To Install VirtualBox 7.x on Kali Linux

Welcome to our Virtualization guide on how to install the latest VirtualBox on Kali Linux rolling release. VirtualBox is a powerful, feature-rich, high-performance and open source x86 and AMD64/Intel64 virtualization solution for both home users and enterprise.

Original content from computingforgeeks.com - post 4217

To get the latest VirtualBox on your Kali Linux, you’ll need to install the package from VirtualBox repositories as opposed to system repos.

Install VirtualBox on Kali Linux

Start the Installation of the latest release of VirtualBox on your Kali Linux Desktop by following below steps. Start by upgrading your system

sudo apt update && sudo apt -y full-upgrade
[ -f /var/run/reboot-required ] && sudo reboot -f

Step 1: Import apt repository

Install curl and gpg tools.

sudo apt install curl gpg gnupg2

Add repository key:

curl -fsSL https://www.virtualbox.org/download/oracle_vbox_2016.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/oracle_vbox_2016.gpg
curl -fsSL https://www.virtualbox.org/download/oracle_vbox.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/oracle_vbox.gpg

Step 2:  Add the VirtualBox repository

Now that the repository key has been imported, add the VirtualBox repository by running the command:

echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bookworm contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Step 3:  Install VirtualBox & Extension pack

The install VirtualBox & Extension pack on your Kali Linux.

sudo apt update
sudo apt install linux-headers-$(uname -r) dkms
sudo apt install virtualbox virtualbox-ext-pack

Accept license agreement and wait for the installation to complete:

.....
depmod....

DKMS: install completed.
Setting up virtualbox (7.1.32-dfsg-1) ...
vboxweb.service is a disabled or a static unit, not starting it.
Setting up virtualbox-ext-pack (7.1.32-1) ...
removing old virtualbox extension packs
virtualbox-ext-pack: downloading: https://download.virtualbox.org/virtualbox/7.1.32/Oracle_VM_VirtualBox_Extension_Pack-3.vbox-extpack
The file will be downloaded into /usr/share/virtualbox-ext-pack
License accepted.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".
....

You can check the version of VirtualBox installed with the command:

$ apt policy virtualbox
virtualbox:
  Installed: 7.1.32-dfsg-1+b1
  Candidate: 7.1.32-dfsg-1+b1
  Version table:
 *** 7.1.32-dfsg-1+b1 500
        500 http://http.kali.org/kali kali-rolling/contrib amd64 Packages
        100 /var/lib/dpkg/status

Once VirtualBox is installed, you can launch it using the terminal or Desktop applications search.

virtualbox

Launch VirtualBox in your Applications launcher.

install virtualbox kali

To create a new instance, click the “New” button at the top and boom!!.

More on Virtualization.

Related Articles

Virtualization How To Run Alpine Linux with Vagrant Containers Running Docker Containers using Vagrant Virtualization How To Install Vagrant on Ubuntu 24.04|22.04|20.04 Virtualization Install and Configure Hyper-V on Windows Server 2022

3 thoughts on “How To Install VirtualBox 7.x on Kali Linux”

  1. Hello Josphat,
    I have to say I’ve been pulling out my hair trying to install Virtualbox in Kali-Linux. Every other site on the net was a dead end. Your instructions were right on! Thanks for you help. I’ve booked marked your web site and I’ll check in regularly.

    Reply

Leave a Comment

Press ESC to close