Oracle VirtualBox is an x86 virtualization application hypervisor that allows users to create and manage virtualization on Windows, Linux, macOS, and FreeBSD. It is an open source project and here we learn the commands to install the VirtualBox software platform on Debian 11 Bullseye Linux.
Virtualization is a software technique that simulates hardware. In this way it is possible, for example, to operate several virtual machines under Windows, on which other operating systems can then be installed. Virtualization uses a lag model because ultimately, of course, the actually installed hardware is also used in a virtual machine, but the trick is that virtual guests can be used like programs on a normal system. It is therefore possible to run several Linux systems in parallel with VirtualBox under Windows. In the other direction, you can also configure a virtual Windows with VirtualBox on a Linux system.
In addition to VirtualBox and guest additions and expansion pack, it allows the guest operating system to run more efficiently with some additional features, such as USB 3.0 support or support from the remote desktop.
Install and use VirtualBox in Debian 11 Bullseye Linux
1. Run the system update
Open the command terminal on your Debian 11 or 10 and run the system update command to refresh the repository cache and get the new available versions of the installed packages.
sudo apt update
2. Check or activate the virtualization function
We need a system with an Intel or AMD process that has the virtualization extension enabled to use Virtualbox. Therefore, to confirm that on your Debian 11, open the command terminal and run the given commands:
egrep -c '(vmx|svm)' /proc/cpuinfo
grep -E --color '(vmx|svm)' /proc/cpuinfo
When you run the above commands to confirm whether virtualization is enabled or not, the output will be Following than zero. And if not, you need to restart your system first and enter the system BIOS. Enable virtualization and then boot to the operating system where run the above command again to confirm the same.
the first order the output will be greater than zero, it means it could be 1, 2, 6 or 8. Therefore, the system supports virtualization.
Using the second order you will get information about your processor whether it is from intel or amd. If the red output text is VMX so it’s Intelligence while SVM means AMD.
3. Add VirtualBox repository and key in Debian 11
VirtualBox packages are not available in the default Debian Bullseye repository, so we have to add the official package manually. Use the commands below.
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bullseye contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
Add a GPG key:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Update the system:
sudo apt update
4. Command to install VirtualBox on Debian 11
Once the repository has been added to download Virtualbox packages on Debian 11 Bullseye, run the given command:
Find the latest version
sudo apt search virtualbox
While doing this article, the last version was Virtualbox-6.1, so the command to install it will be:
sudo apt install virtualbox-6.1
5. Start the VirtualBox application
Now go to the app launcher and search for VirtualBox. Run it and start creating virtual machines.
6. Update VirtualBox
To update this app in the future, just run the system update command:
sudo apt update sudo apt install virtualbox
To learn more:
• How to install Ubuntu 22.04 LTS ISO in VirtualBox
• Download Rocky Linux 8 ISO to install it on VirtualBox