In this article, we will have explained the necessary steps to install and configure VirtualBox on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
VirtualBox is an open-source cross-platform virtualization software which allows you to run multiple guest operating systems (virtual machines) simultaneously. Oracle VM VirtualBox lets you create one or more VMs on a single physical server. Virtual Machines are computers that use the hardware components of the host computer, each running its own operating system. VB supports the installation of MS Windows, Linux, BDS, and MS-DOS on the installed VMs.
Install VirtualBox on Debian
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo apt update sudo apt upgrade
Step 2. Installing VirtualBox.
First, import the VirtualBox repository GPG keys to your system:
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 -
Next, add the VirtualBox apt repository:
sudo apt install software-properties-common sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
Once the VirtualBox repository is enabled, update the apt package list and install the latest version of VirtualBox:
sudo apt update sudo apt install virtualbox-6.0
Step 3. Install VirtualBox extension on Ubuntu:
For additional features you may wish to install Virtualbox extension. To do so execute the below command:
Once the download is completed, run the following command to install the extension pack:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.0.10.vbox-extpack
Step 4. Starting VirtualBox.
Now that VirtualBox is installed on your Ubuntu system you can start it either from the command line by typing virtualbox or by clicking on the VirtualBox icon (Applications -> System Tools -> Oracle VM VirtualBox.).
Congratulation, you have learned how to install and configure VirtualBox on Debian 10 Buster. If you have any question, please leave a comment below.