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

ONET 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, ONET 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

Install Clear Linux (Intel Linux OS) on a Virtual Machine using VirtualBox

The Clear Linux Project for Intel Architecture is building a Linux OS distribution targeted for various cloud use cases. The...

VirtualBox for Beginners

VirtualBox: Beginners Guide and How to Setup Ubuntu Virtual Machine What is VirtualBox?  VirtualBox...

How to SSH into your VirtualBox Guest

There are times when you want to have a remote access to your VM. Maybe, it’s just a server operating system running...
Bài Viết

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


Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail

Mua shadowsocks và hướng dẫn sữ dụng trên window

Tại sao Proxy Socks lại được ưa chuộng hơn Proxy HTTP?

Mua thuê proxy v4 nuôi zalo chất lượng cao, kinh nghiệm tránh quét tài khoản zalo