How to Install VirtualBox on Debian

How to Install VirtualBox on Debian

Oracle VM VirtualBox is an open-source, cross-platform virtualization software that let you run multiple guest operating systems on your present operating system (called guest OS).

VirtualBox is an easy-to-use software, you need to do a few steps to get a running guest operating system.

This article will show how to install VirtualBox on Debian. There are two methods to install VirtualBox on Debian.

VirtualBox Graphical Installation

word image 142

Open a browser. I am using Brave browser. You can use any browser.

Go to VirtualBox downloads page, click Debian 11 to download the binary package – https://www.virtualbox.org/wiki/Linux_Downloads

word image 143

word image 144

Go to the download location, right-click virtualbox*.deb, then open with software install.

word image 145

word image 146

Click install, and enter your password.

word image 147

word image 148

Now you can open VirtualBox by clicking open on software install, or search for it in your app menu, or type virtualbox in terminal.

word image 151

Installing VirtualBox via the Command-line

Open up a terminal either graphically or by pressing t while holding both Alt and Shift keys.

word image 152

Add the Oracle VirtualBox pgp key to apt using the following command.

wget -qO- https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

word image 153

Add VirtualBox to apt package sources list by adding an entry to /etc/apt/sources.list file (this article will use vim; the entry will be added to the end of the file).

Must be opened the file as root, i.e., with sudo:

word image 154

sudo vim /etc/apt/sources.list

Press G to go to the end of the file, then add the next line after pressing i (insert mode). If you are using Debian 10, change bullseye to buster.

word image 155

word image 156

deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bullseye contrib

word image 157

Update apt list by executing the next command:

word image 158

sudo apt update

Upgrade all your software by executing the next command (you can omit this step, but this may upgrade your kernel which improves the performance), then reboot your OS:

sudo apt upgrade

word image 159

word image 160

sudo reboot

Now install VirtualBox by executing the next command.

word image 161

sudo apt install virtualbox

Now you can run VirtualBox either graphically by searching your app menu, or by running the next command:

virtualbox

word image 162

0 Shares:
Subscribe
Notify of
guest
Receive notifications when your comment receives a reply. (Optional)
Your username will link to your website. (Optional)
0 Comments
Inline Feedbacks
View all comments
You May Also Like
Bash For Loop
Read More

Bash For Loop

Loops are used in computer programming languages to repeat certain instructions several times. This is not only to…