Hello people, today I am going to teach you how to install VirtualBox in Deepin 20 without breaking the system. Some took us by surprise that when installing VirtualBox in Deepin 20 beta, with the official site installerAfter restarting the system it did not start, Deepin was broken and did not load the graphical environment.

After the following explanation, it becomes clear that the reason is obvious. The detail is in the kernel version currently used (October 2020) by Debian and Deepin 20.

Deepin 20 betacore 5.3
Deepin 20core 5.4
Debian 10kernel 4.19

As Deepin 20 is based on Debian 10 buster, the tendency is to choose the VirtualBox installer for Debian 10, consequently this installer modifies and reconfigures Deepin 20 for kernel 4.19, but Deepin does not have this one and that is what broke the system .

Already We left Deepin 20 beta behind several weeks ago, but we still recommend being cautious and using the Deepin repository installer, which is already adapted for its 5.4 kernel. This situation will probably continue as long as Deepin and Debian do not share the same kernel version, which has been outdated for Deepin to better support recent hardware.

If we prove that the most recent versions of VirtualBox are safe for Deepin 20, we will upload them to the Deepines Repository and Deepines Store.

Without further ado, I present this simple procedure.


The first thing we are going to do is list the available versions of VirtuaBox and then choose one.

apt list | grep virtualbox

An example of the result is the following.

[email protected]:~$ apt list | grep virtualbox

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

boinc-virtualbox/desconocido 7.14.2+dfsg-3 amd64
virtualbox-6.0/desconocido 6.0.10-132072~Ubuntu~bionic amd64
virtualbox-6.1/desconocido,now 6.1.12-139181~Uos-eagle amd64
virtualbox-guest-additions-iso/desconocido,desconocido 6.0.4-1 all
[email protected]:~$

In this case the available versions are:

  • 6.0
  • 6.1

We choose version 6.1 and install with the following command.

sudo apt install virtualbox-6.1

The next step is to install the Extension Pack, this allows better integration of virtualized systems with the guest system, for example to share the clipboard and improve performance.

Execute the following command to download the VirtualBox Extension Pack, it downloads the version corresponding to the VirtualBox that we just installed. Copy it whole, it's a single line.

VB_VERSION=$(virtualbox --help | sed 1q | cut -d " " -f 6 | sed 's/v//'); wget$VB_VERSION/Oracle_VM_VirtualBox_Extension_Pack-$VB_VERSION.vbox-extpack

Next we install the Extension Pack, to do this, execute the following.

sudo VBoxManage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-$VB_VERSION.vbox-extpack

During installation it asks if you accept the license agreement as shown below.

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

Write a "y" and press Enter to accept.

Since you no longer need the Extension Pack installer, you can delete it with the following command.

rm Oracle_VM_VirtualBox_Extension_Pack-$VB_VERSION.vbox-extpack


To add permissions to use the USB ports and to be able to connect USB keys and other devices, add your user to the vboxusers group with this command.

sudo adduser $(whoami) vboxusers

The last step is to restart the computer so that VirtualBox applies the permissions.

That's it and, in my opinion, installing VirtualBox in Deepin 20, using only the terminal, is much simpler and faster than the "graphical method". How much easier is it to copy and paste a few commands than to serve a "bunch" of windows and click next over and over again?

If you want a tutorial on how to create and configure virtual machines let me know in the comments.

5 12 votes
Rate the Article
Report of
13 Reacciones
More popular
Newer Older
Opinion from the article
See all comments
G4SP3R (@g4sp3r)
9 días atrás

Excellent, grace! it will be very useful

Antonio Luis Lallena Passas
Antonio Luis Lallena Passas (@antonioluislallenapassas)
8 días atrás

Thank you very much for your always helpful help!

Grijando (@grijando)
8 días atrás

Hello! First of all, thank you very much for this tutorial. I wanted to comment that I always use VMWare without problems but only until version 12 because from version 14 it asks me to activate hardware virtualization, which my laptop does not have. However, I have never gotten to get VirtualBox working, I don't know why, but I have followed a lot of tutorials and it still doesn't work for me. I have come to think that when installing the latest version it would also ask me to activate hardware virtualization as it happens with VMWare but I remember that years ago, with other versions and other computers, the same thing happened to me, that I could not make it work. So I would like to ask you to upload a complete tutorial.

Thank you very much for everything in advance.

Greetings from Spain!

Эли (@eli)
Respondiendo a  Grijando
8 días atrás

Screaming thank you very much for reading the article,

I too have always preferred VMWare and VirtualBox has almost always given me problems. However the tutorial Isaías Gätjens M it is quite complete and includes installation. What specifically do you mean by "From the beginning"?


Grijando (@grijando)
Respondiendo a  Isaías Gätjens M
6 días atrás

¡Hola, Isaías! Gracias por tu respuesta. Me refiero a si podrían subir un tutorial sobre cómo crear una máquina virtual con VirtualBox, ya que todos los que he seguido no me han funcionado y no sé si es porque la última versión, que es la que siempre instalo en Linux, me pide la virtualización por hardware, como pasa con VMWare a partir de la versión 14. Muchas gracias de nuevo.

Jose David Escalante
Jose David Escalante (@josedavidescalante)
Respondiendo a  Grijando
6 días atrás

Hardware virtualization I have always seen as a functionality that must be activated from the bios.

jorge eliecer maldonado perez
jorge eliecer maldonado perez (@jorgeeliecermaldonadoperez)
9 días atrás

It would be good tutorials and provide more information about deepin I am new to this and I have had several problems and almost no information is obtained thanks

Martin Valladares
Martin Valladares (@mvalladares2006)
9 días atrás

Does anyone know what advantages this has over let's say vmware?
Thank you

Antoine Debian
Antoine Debian (@antoinedebian)
3 días atrás

Hello everyone, I recently installed Deepin 20, but when I run my machines in Virtualbox I get Kernel Drive not installed (RC = 1908). Any solution for this problem.?

We would like to know what you think, join the discussion.x