Virtualbox on Linux – In this article, I will show you how to properly install VirtualBox on Linux.
VirtualBox is a versatile virtualization tool for x86 and x86-64 hardware. It is designed for servers, desktops, and embedded systems, allowing users and administrators to easily run multiple guest operating systems on a single host.
How to install Virtualbox on Linux
First, you need to import the VirtualBox repository key so that you run the below command on your terminal.
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Now we are going to add the VirtualBox repository to a separate file so that it does not interfere with the Kali Linux main repository.
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian buster contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
Now we need to update the kali-Linux machine so type the below command
sudo apt update
VirtualBox has different kernel modules (such as vboxdrv, vboxnetflt, and vboxnetadb), and we need to make sure to update them when the Kali kernel is updated. It can be archived with dkms. So do this command
sudo apt install -y dkms
After that type the following command to install the Virtualbox
sudo apt install -y virtualbox virtualbox-ext-pack
After completing the above steps type the below command to run the virtualbox
Now you can add any operating system to this Virtualbox. I hope this article helps you lot, if you have any doubts means ask me the command section.