How to Install VirtualBox on Debian Linux 10 Linux

Published on

3 min read

Install VirtualBox on Debian Buster

VirtualBox is an open-source cross-platform virtualization software that allows you to run multiple guest operating systems (virtual machines) simultaneously.

This tutorial explains how to install the latest VirtualBox on Debian 10, Buster.


To be able to install packages on Debian, you’ll need to be logged in as a user with sudo privileges .

Installing VirtualBox on Debian

VirtualBox packages are not available in the default Debian 10 repositories. We’ll download and install VirtualBox from the Oracle repositories.

At the time of writing this article, the latest version of VirtualBox is 6.0. Before you continue check the VirtualBox download page for a newer version.

The following steps describe how to install VirtualBox on Debian 10 Linux:

  1. Import the VirtualBox repository GPG keys to your system using the following wget commands:

    wget -q -O- | sudo apt-key add -wget -q -O- | sudo apt-key add -

    Both commands, should output OK which means that the keys are successfully imported and packages from this repository will be considered trusted.

  2. Next, add the VirtualBox apt repository to your sources list:

    sudo apt install software-properties-commonsudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) contrib"

    $(lsb_release -cs) will print the Debian codename. In this case, that is buster.

  3. Once the repository is enabled, update the package list and install the latest version of VirtualBox:

    sudo apt update && sudo apt install virtualbox-6.0

At this point, you have VirtualBox installed o your Debian Buster, and you can start using it.

Installing VirtualBox Extension Pack

The VirtualBox Extension Pack provides several useful functionalities for guest machines such as virtual USB 2.0 and 3.0 devices, support for RDP, images encryption, and more.

The version of the Extension Pack must correspond with the version of the installed VirtualBox. To download the extension file type:


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

You will be presented with the Oracle license and prompted to accept their terms and conditions.

Do you agree to these license terms and conditions (y/n)?

Type y and hit Enter. On successful installation you will see the following output:

Successfully installed "Oracle VM VirtualBox Extension Pack".

Starting VirtualBox

Now that VirtualBox is installed on your Debian system you can launch the application from the command line by typing:


GNOME users can start VirtualBox by clicking on the VirtualBox icon: Applications -> System Tools -> Oracle VM VirtualBox.

When VirtualBox starts for the first time, a window like the following should appear:

Debian Install Virtualbox

If you are using KDE, launch VirtualBox by clicking on the VirtualBox icon KDE menu -> System -> Oracle VM VirtualBox.

Or if you are using Xfce as your desktop environment clicking on the VirtualBox icon (Applications -> System -> Oracle VM VirtualBox).


Installing VirtualBox on Debian is a relatively straightforward process and will only take a few minutes.

You can now install your first Windows or Linux guest machine. To find more information about VirtualBox, visit the official VirtualBox documentation page.

If you have any questions, please leave a comment below.