How to Install Oracle Virtual Box On Debian 11.4
- 00:40 lsb_release -a
- 00:51 sudo apt-get update
- 01:09 egrep -c '(vmx|svm)' /proc/cpuinfo
- 01:35 grep -E --color '(vmx|svm)' /proc/cpuinfo
- 02:08 echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bullseye contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
- 03:39 wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
- 04:40 sudo apt-get update
- 04:56 sudo apt search virtualbox
- 05:12 sudo apt install virtualbox-6.1
To Install VirtualBox On Debian 11.4
Introduction:
VM VirtualBox is a cross-platform virtualization software that enables users to simultaneously run Windows, Mac OS X, Linux, and Oracle Solaris on their existing computers.
Installation Procedure:
Step 1: Check the OS Version by using the below command.
root@debian:~# lsb_release -aNo LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Step 2: Update the system package by using the below command.
root@debian:~# apt-get updateHit:1 http://security.debian.org/debian-security bullseye-security InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:3 http://deb.debian.org/debian bullseye InRelease
Fetched 44.1 kB in 1s (56.1 kB/s)
Reading package lists... Done
Step 3: Check and Enable virtualization feature by using the below commands
root@debian:~# egrep -c '(vmx|svm)' /proc/cpuinfo0
root@debian:~# grep -E --color '(vmx|svm)' /proc/cpuinfo
Step 4: Add the VirtualBox repository by using the below command.
root@debian:~# echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bullseye contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.listdeb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bullseye contrib
Step 5: Add the GPG Key by using the below command.
root@debian:~# wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
Step 6: Next, update the system package by using the below command.
root@debian:~# apt-get updateHit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye InRelease
Get:4 https://download.virtualbox.org/virtualbox/debian bullseye InRelease [7,735 B]
87% [Working]
Get:5 https://download.virtualbox.org/virtualbox/debian bullseye/contrib amd64 Packages [1,447 B]
Fetched 9,182 B in 2s (4,591 B/s)
Reading package lists... Done
Step 7: Once the repository is added to download the packages of Virtualbox, then search for the latest version by using the below command.
root@debian:~# apt search virtualboxSorting... Done
Full Text Search... Done
fence-agents/oldstable 4.7.1-1 amd64
Fence Agents for Red Hat Cluster
imvirt/oldstable 0.9.6-8 all
detects several virtualizations
imvirt-helper/oldstable 0.9.6-8 amd64
helper programs to detect several virtualizations
libimvirt-perl/oldstable 0.9.6-8 all
Perl module for detecting several virtualizations
libnss-libvirt/oldstable 7.0.0-3+deb11u2 amd64
nss plugins providing IP address resolution for virtual machines
libvirt-clients/oldstable 7.0.0-3+deb11u2 amd64
Programs for the libvirt library
virtualbox-6.1/unknown 6.1.44-156814~Debian~bullseye amd64
Oracle VM VirtualBox
virtualbox-7.0/unknown 7.0.8-156879~Debian~bullseye amd64
Oracle VM VirtualBox
xmount/oldstable 0.7.6-3 amd64
tool for crossmounting between disk image formats
Step 8: Finally install the VirtualBox by using the below command.
root@debian:~# apt install virtualbox-6.1Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
dbconfig-common dbconfig-mysql default-mysql-client galera-4
icc-profiles-free libaio1 libcgi-fast-perl libcgi-pm-perl
libconfig-inifiles-perl libdbd-mariadb-perl libdbi-perl libfcgi-bin
libfcgi-perl libfcgi0ldbl libhtml-template-perl libjs-bootstrap4
libjs-codemirror libjs-jquery libjs-jquery-mousewheel
libmd4c0 libnsl-dev libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5
libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5
libqt5x11extras5 libsdl-ttf2.0-0 libsdl1.2debian libtirpc-dev libtsan0
libubsan1 libxcb-xinerama0 libxcb-xinput0 linux-compiler-gcc-10-x86
linux-headers-5.10.0-23-amd64 linux-headers-5.10.0-23-common
linux-headers-amd64 linux-kbuild-5.10 linux-libc-dev make manpages-dev
qt5-gtk-platformtheme qttranslations5-l10n virtualbox-6.1
0 upgraded, 48 newly installed, 0 to remove and 28 not upgraded.
Need to get 156 MB of archives.
After this operation, 477 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/debian-security bullseye-security/main amd64 linux-libc-dev amd64 5.10.179-2 [1,618 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libdouble-
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Setting up linux-headers-amd64 (5.10.179-2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for shared-mime-info (2.0-1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Step 9: Now, go to the Application launcher, search for VirtualBox. Then run it and start creating virtual machines as shown in the below images.

Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install VirtualBox App. Your feedback is much welcome.
Comments ( 0 )
No comments available