HomeDEBIANInstall VirtualBox 7.0 on Debian 11

Install VirtualBox 7.0 on Debian 11

This guide will show you how to install VirtualBox 7.0 on Debian 11 Linux system. The VirtualBox is a powerful tool for virtualization developed by Oracle Corporation. It is a widely used commercial by large enterprises as well as home users. VirtualBox 7.0 is the latest major release by the Oracle team. This version is released with various performance improvements over the previous major releases.

The following are the main enhancements made to VirtualBox 7.0

  • A new GUI utility has been added that displays performance statistics (CPU usage, RAM usage, disk I/O rate, and so on) for running guests.
  • Virtual machines can now be completely secured, down to the saved states and VM configuration logs (CLI only for now).
  • All platforms now have better support for GUI themes; on Linux and macOS, this is done through a separate implementation on the Windows host.
  • When updating Guest Additions through VBoxManage, the possibility to wait for and/or reboot the guest has been implemented.
  • Initial support for automated upgrading of Linux guests’ guest additions was implemented.
  • Virtual Guest Additions: Redesigned the ability for guests to resize their screens, and included rudimentary integration with some of their desktop environments.
  • The addition of virtual TPM 1.2 and 2.0 devices
  • New 3D support based on DirectX 11 has been added (and DXVK on non-Windows hosts).
  • Secure Boot now has EFI support.
  • Added experimental support for GDB guest debugging and highly experimental support for KD/WinDbg guest debugging.
  • The open-source base package now includes the EHCI and XHCI USB controller devices.
  • Cloud networks can now be configured using the Network Manager tool in the same way that host-only and NAT networks are.
  • Virtual Machine Manager allows for the addition of cloud virtual machines that may be managed like local VMs.

Install VirtualBox 7.0 on Debian 11

Follow the steps below to install the latest VirtualBox 7.0 on Debian 11.

Step 1: Update the system

Log in to the Debian 11 desktop system using a sudo account. Update all the packages that are currently installed on your system. Simply run the commands below to accomplish this.

sudo apt update && apt upgrade 

Step 2: Import GPG Apt Repository

Execute the following command to add the required tools:

sudo apt install curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates

Output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20210119).
gpg is already the newest version (2.2.27-2+deb11u2).
gpg set to manually installed.
lsb-release is already the newest version (11.1.0).
lsb-release set to manually installed.
software-properties-common is already the newest version (0.96.20.2-2.1).
software-properties-common set to manually installed.
The following package was automatically installed and is no longer required:
  linux-image-5.10.0-9-amd64
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libcurl4
The following NEW packages will be installed:
  apt-transport-https curl gnupg2
The following packages will be upgraded:
  libcurl4
1 upgraded, 3 newly installed, 0 to remove and 79 not upgraded.
Need to get 1,210 kB of archives.
After this operation, 1,060 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y

Your machine should now have Oracle public keys, which are needed to sign Debian packages.
The following commands can be used to add these keys.

curl -fsSL https://www.virtualbox.org/download/oracle_vbox_2016.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/oracle_vbox_2016.gpg

curl -fsSL https://www.virtualbox.org/download/oracle_vbox.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/oracle_vbox.gpg

Step 3: Add the VirtualBox repository

After you’ve imported GPG signing keys into your Debian system, you can add the VirtualBox APT repository by running the command listed below in your terminal.

echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Step 4: Installing VirtualBox 7.0 on Debian 11

Let’s install VirtualBox using the commands listed below after finishing the aforementioned stages.
If you already have an older version of VirtualBox installed, the below command will automatically upgrade it.

It takes a while to complete.

sudo apt update -y
sudo apt install linux-headers-$(uname -r) dkms -y
sudo apt install virtualbox-7.0 

Sample output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-image-5.10.0-9-amd64
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libdouble-conversion3 libmd4c0 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5help5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5widgets5 libqt5x11extras5 libqt5xml5
  libsdl-ttf2.0-0 libsdl1.2debian libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme qttranslations5-l10n
Suggested packages:
  qt5-image-formats-plugins qtwayland5
Recommended packages:
  linux-image
The following NEW packages will be installed:
  libdouble-conversion3 libmd4c0 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5help5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5widgets5 libqt5x11extras5 libqt5xml5
  libsdl-ttf2.0-0 libsdl1.2debian libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme qttranslations5-l10n
  virtualbox-7.0
0 upgraded, 23 newly installed, 0 to remove and 78 not upgraded.
Need to get 104 MB of archives.
After this operation, 264 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Then, run the following command to download the VirtualBox extension pack.

wget https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack

Sample output:

--2023-02-11 00:08:32--  https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack
Resolving download.virtualbox.org (download.virtualbox.org)... 23.2.113.86
Connecting to download.virtualbox.org (download.virtualbox.org)|23.2.113.86|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18487641 (18M) [text/plain]
Saving to: ‘Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack’

Oracle_VM_VirtualBox_Extension 100%[===================================================>]  17.63M   389KB/s    in 42s     

2023-02-11 00:09:16 (433 KB/s) - ‘Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack’ saved [18487641/18487641]

Step 5: Launching VirtualBox 7.0 on Debian 11

After installing VirtualBox, you can access it via the terminal or the Desktop applications search.

Activities > Show Applications > VirtualBox

Install VirtualBox 7.0 on Debian 11

Alternatively;

$ virtualbox

Following is a screenshot of the updated VirtualBox user interface:

Install VirtualBox 7.0 on Debian 11

Kudos!! The latest VirtualBox is now successfully installed on your machine.

Conclusion

You have reached the end of our article, where we discussed how to install VirtualBox 7 on Debian 11.

Read more about VirtualBox.

Extra tutorials:
- Advertisment -

Recent posts

LEAVE A REPLY

Please enter your comment!
Please enter your name here