How to Install VirtualBox on Debian 11.3
- 00:29 lsb_release -a
- 00:41 sudo apt-get update
- 01:05 egrep -c '(vmx|svm)' /proc/cpuinfo
- 01:30 grep -E --color '(vmx|svm)' /proc/cpuinfo
- 01:46 echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bullseye contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
- 01:55 wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
- 02:17 sudo apt-get update
- 02:42 sudo apt search virtualbox
- 03:08 sudo apt install virtualbox-6.1
To Install VirtualBox On Debian 11.3
Introduction:
Oracle VM VirtualBox is cross-platform virtualization software that allows users to extend their existing computer to run multiple operating systems like Microsoft Windows, Mac OS X, Linux, and Oracle Solaris, at the same time.
Installation Procedure:
Step 1: Check the OS Version by using the below command.
[root@linuxhelp:~#] lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Step 2: Next, update the system package by using the below command.
[root@linuxhelp:~#] sudo apt-get update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main Sources [8,633 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main Sources [158 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [186 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main Translation-en [117 kB]
Get:8 http://deb.debian.org/debian bullseye-updates/main Sources.diff/Index [11.7 kB]
Get:9 http://deb.debian.org/debian bullseye-updates/main amd64 Packages.diff/Index [11.7 kB]
-2032.44.pdiff [286 B]
Fetched 923 kB in 1s (945 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Step 3: Next, check and Enable virtualization feature by using following commands.
[root@linuxhelp:~#] egrep -c '(vmx|svm)' /proc/cpuinfo
0
[root@linuxhelp:~#] grep -E --color '(vmx|svm)' /proc/cpuinfo
Step 4: Add the VirtualBox repository by using the below command.
[root@linuxhelp: ~#] echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bullseye contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
Step 5: Also Add the GPG Key by using the below command.
[root@linuxhelp: ~#]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@linuxhelp: ~#] sudo apt-get update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main Sources [8,633 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main Sources [158 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [186 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main Translation-en [117 kB]
Get:8 http://deb.debian.org/debian bullseye-updates/main Sources.diff/Index [11.7 kB]
Get:9 http://deb.debian.org/debian bullseye-updates/main amd64 Packages.diff/Index [11.7 kB]
-2032.44.pdiff [286 B]
Fetched 923 kB in 1s (945 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... 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@linuxhelp: ~#] sudo apt search virtualbox
Sorting... Done
Full Text Search... Done
fence-agents/stable 4.7.1-1 amd64
Fence Agents for Red Hat Cluster
imvirt/stable 0.9.6-8 all
detects several virtualizations
imvirt-helper/stable 0.9.6-8 amd64
helper programs to detect several virtualizations
libimvirt-perl/stable 0.9.6-8 all
Perl module for detecting several virtualizations
libnss-libvirt/stable 7.0.0-3 amd64
nss plugins providing IP address resolution for virtual machines
libvirt-clients/stable 7.0.0-3 amd64
Programs for the libvirt library
libvirt-daemon/stable 7.0.0-3 amd64
Virtualization daemon
libvirt-daemon-config-network/stable 7.0.0-3 all
Libvirt daemon configuration files (default network)
Step 8: Finally install the VirtualBox by using the below command.
[root@linuxhelp: ~#] sudo apt install virtualbox-6.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libdouble-conversion3 libmd4c0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5 libsdl-ttf2.0-0 libsdl1.2debian
libxcb-xinerama0 libxcb-xinput0 linux-compiler-gcc-10-x86 linux-headers-5.10.0-19-amd64 linux-headers-5.10.0-19-common linux-headers-amd64 linux-kbuild-5.10 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 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5 libsdl-ttf2.0-0 libsdl1.2debian
libxcb-xinerama0 libxcb-xinput0 linux-compiler-gcc-10-x86 linux-headers-5.10.0-19-amd64 linux-headers-5.10.0-19-common linux-headers-amd64 linux-kbuild-5.10 qt5-gtk-platformtheme qttranslations5-l10n
virtualbox-6.1
0 upgraded, 23 newly installed, 0 to remove and 164 not upgraded.
Need to get 118 MB of archives.
After this operation, 329 MB of additional disk space will be used.
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Processing triggers for shared-mime-info (2.0-1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
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