How to Install VirtualBox 6 on Debian 10

This tutorial shows how to setup VirtualBox 6.1 on Debian 10 Buster, it is also useful for previous versions of Debian and for Ubuntu too.

This tutorial shows the installation process through the .deb package available at VirtualBox official website omitting the process related to apt or aptitude package managers though keeping it to fix dependencies.

How to Install VirtualBox 6 on Debian 10

To begin downloading VirtualBox from the official website select it from

You can also download it through console using the command wget:

#  wget

Install it using the dpkg command:

# dpkg -i <package.deb>

In my case I run:

# dpkg -i virtualbox-6.1_6.1.0-135406~Debian~buster_amd64.deb

Note: for more information on dpkg command you can read All about the debian package managers: dpkg, apt and aptitude explained.
At some point the installer may stop returning a dependency error, if that’s your case and your installation doesn’t finish successfully run:

# apt update && upgrade
# apt install -f

The step above should troubleshoot some possible dependency problems.

Now install the kernel headers by running:

# apt install linux-headers-amd64 linux-headers-4.19.0-6-amd64

Build VirtualBox kernel modules by running:

# /sbin/box config

Then launch Virtualbox as non root user

$ virtualbox

The image above shows VirtualBox’s main window without defined virtual devices.

Creating a Windows XP Virtual PC under Debian 10 Buster

 To get started setting up a virtual OS from its ISO image click on the icon “NEW”, the following example shows a Windows XP installation from an ISO installable image, if you prefer to install a Linux distribution you can read Installing Debian 10 on VirtualBox.

Choose your virtual computer name and press on Next.

Select the ram memory amount you can to assign your virtual device and press on Next.

Press Create leaving the default option to continue.

Leave the default VDI option and press Next.

The last step allows us to define the space allocation, press on Create to end the process and start the OS installation.

Once the process is finished, VirtualBox will show the new virtual device on the left menu.

To start installing the OS click on START.

In the next screen select the folder icon to browse searching your OS ISO image.

A new window will prompt in which you need to press on the “Add” icon with a + symbol to select the ISO image.

Select your ISO location and file and press Open to continue.

Press on Choose to confirm and continue the process.

Then press on START to run the Windows installator.

The installator will start requesting you to press ENTER and F8 to begin the process.

Note: during the process the mouse pointer may be captured by the virtual pc, you can press your right CTRL to release your mouse.

Give the total amount of available space and format it as NTFS (Quick).
The first GUI screen will ask for location and language settings, after chosen press on Next.

Then fill the Windows CD key serial.

Set the virtual computer name and press on Continue.

Optionally you can set an Administrator password, contrary to Linux Windows formerly didn’t require a password as mandatory, and even if defined it could be avoided by pressing “cancel”.

On the next screen you need to select your time and location settings:

In the following screen leave “Typical settings” and press Next to continue.

The next step will ask for the Workgroup name, press Next to continue.

Now let Windows installer to finish

Finally Windows XP main screen will show up.

Adding the VirtualBox 6.1.0 Oracle VM VirtualBox Extension Pack

Additional packages can increase VirtualBox functionalities by adding features such as:


You can download the extension pack from the link:

Or using wget by running:

# wget

Then just double click on the downloaded file:

The Extension Pack installer will prompt, press on Install to confirm

On the License screen scroll down and press on I Agree to continue.

If asked, fill your root password to allow the installation.

Once ended the process will show if installed successfully.

Press OK, the Extension Pack is already installed.

I hope you found this brief tutorial on Installing VirtualBox 6 on Debian 10 Buster useful, thank you for reading it.

Related articles

Sandclock IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, Sandclock IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

How to Install VirtualBox 6 on Debian 10

This tutorial shows how to setup VirtualBox 6.1 on Debian 10 Buster, it is also useful for previous versions of Debian...

Increase VirtualBox Disk Size

Virtual machines are some of the most important tools in an IT professional’s tool-kit. You can test unknown software,...

Installing Virtual Box on Debian 10

VirtualBox is a free and open source virtualization solution from Oracle. VirtualBox is cross-platform. It runs on Windows,...
Bài Viết

Bài Viết Mới Cập Nhật

Hướng dẫn chuyển đổi windows server windows evaluation to standard và active windows server 2008 + 2012 + 2016 + 2019

How to Update Ubuntu Linux

Squid Proxy Manager cài đặt và quản lý Proxy Squid tự động trên ubuntu

Hướng dẫn cài đặt Apache CloudStack

Hướng dẫn ký file PDF bằng chữ ký số (chữ ký điện tử) và sửa lỗi mới nhất 2021 foxit reader