You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

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.

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 latest VirtualBox on Kali Linux

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

Step 1: Import apt repository

Add repository key:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

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] http://download.virtualbox.org/virtualbox/debian buster 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:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
virtualbox is already the newest version (6.1.2-dfsg-1).
The following NEW packages will be installed:
  virtualbox-ext-pack
0 upgraded, 1 newly installed, 0 to remove and 674 not upgraded.
6 not fully installed or removed.
Need to get 0 B/13.0 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 277837 files and directories currently installed.)
Preparing to unpack .../virtualbox-ext-pack_6.1.2-1_all.deb ...
License has already been accepted.
Unpacking virtualbox-ext-pack (6.1.2-1) ...
Setting up libvncserver1:amd64 (0.9.12+dfsg-7) ...
Setting up libsdl1.2debian:amd64 (1.2.15+dfsg2-5) ...
Setting up libgsoap-2.8.91:amd64 (2.8.91-2) ...
Setting up virtualbox-dkms (6.1.2-dfsg-1) ...
Loading new virtualbox-6.1.2 DKMS files...
Building for 5.3.0-kali2-amd64
Building initial module for 5.3.0-kali2-amd64
Done.

vboxdrv.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-kali2-amd64/updates/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-kali2-amd64/updates/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-kali2-amd64/updates/

depmod....

DKMS: install completed.
Setting up virtualbox (6.1.2-dfsg-1) ...
vboxweb.service is a disabled or a static unit, not starting it.
Setting up virtualbox-ext-pack (6.1.2-1) ...
removing old virtualbox extension packs
virtualbox-ext-pack: downloading: https://download.virtualbox.org/virtualbox/6.1.2/Oracle_VM_VirtualBox_Extension_Pack-6.1.2.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".
Setting up virtualbox-qt (6.1.2-dfsg-1) ...
Processing triggers for desktop-file-utils (0.24-1) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.29-3) ...
Processing triggers for systemd (243-8) ...
Processing triggers for man-db (2.9.0-1) ...
Processing triggers for shared-mime-info (1.10-1) ...

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

$ apt policy virtualbox
virtualbox:
  Installed: 6.1.2-dfsg-1
  Candidate: 6.1.2-dfsg-1
  Version table:
 *** 6.1.2-dfsg-1 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.

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

More on Virtualization.

How To run Kali Linux on VirtualBox with Vagrant

How To Install VirtualBox on CentOS / RHEL 8

How To Install Vagrant on CentOS / RHEL 8

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF