How to Install Oracle VirtualBox on Linux

Oracle’s VirtualBox tool is excellent for emulating other operating systems. If you are using Linux and need to run something like Microsoft Windows, Android x86, BSD, and others, you will need to install this program on your computer. Here’s how. Ubuntu Installation Instructions On Ubuntu, the Oracle VM VirtualBox application is available in official software repositories. Start by opening a terminal window on the Ubuntu desktop to get it running on your computer. Not sure…

Oracle’s VirtualBox tool is excellent for emulating other operating systems. If you are using Linux and need to run something like Microsoft Windows, Android x86, BSD, and others, you will need to install this program on your computer. Here’s how.

Ubuntu Installation Instructions

On Ubuntu, the Oracle VM VirtualBox application is available in official software repositories. Start by opening a terminal window on the Ubuntu desktop to get it running on your computer.

Not sure how to launch a terminal window on the Ubuntu desktop? Press Ctrl + Alt + T on the keyboard. Or search for “Terminal” in the application menu and launch it that way. Once it is open, use the apt install command to configure the latest “VirtualBox” package.

Note: In addition to the “VirtualBox” package, you will also need to configure the latest Linux kernel headers. These headers are required for VirtualBox to work properly on Ubuntu.

sudo apt install VirtualBox Linux-headers-$(uname -r)

After entering the above command, Ubuntu will ask you for your password. Using the keyboard, enter the password for your username. Next, press the Y key to confirm that you want to install VirtualBox.

Debian Installation Instructions

VirtualBox is available for Debian Linux users. However, it may be a bit outdated. To make it work on your Debian system, open a terminal window on the desktop by pressing Ctrl + Alt + T on the keyboard. Or search for “Terminal” in the application menu and launch it that way.

With the terminal window open and ready to go, run the apt-get install command to install both the “VirtualBox” package and the latest Linux kernel headers (if you haven’t already configured them). -headers on Debian.)

sudo apt-get install VirtualBox Linux-headers-$(uname -r)

After entering the above command, Debian will ask you for your password. Using your keyboard, enter the password for your user account. Then press the Enter key to submit the password. Finally, press Y to confirm that you want to install VirtualBox.

Arch Linux Installation Instructions

Arch Linux always has the latest version of VirtualBox right in the official software repositories. To get it working on your Arch Linux system, start by opening a terminal window on the desktop.

With the terminal window open on the Linux desktop, use the Pacman command to install the “VirtualBox” package. To ensure that the VirtualBox modules compile correctly, you will also need to install the “linux-headers” package on Arch Linux.

sudo Pacman -S VirtualBox Linux-headers

Once you enter the above command, Arch Linux will ask you for your password. Using your keyboard, enter the password for your username. Next, press the Enter key to confirm that you want to install the packages.

Fedora Installation Instructions

Oracle VM VirtualBox is not available in official Fedora Linux software repositories. However, it is possible to run the application after enabling RPM Fusion software repositories. Here’s how to activate them.

First, open a terminal window on the Fedora desktop. You can open a terminal window by pressing Ctrl + Alt + T on the keyboard. Or by searching for “Terminal” in the application menu. Once opened, use the commands below to activate RPM Fusion.

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm sudo dnf install https://download1.rpmfusion.org/nonfree/ fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

After installing both software repositories on Fedora, you will be able to install VirtualBox using the dnf install command below.

sudo dnf install VirtualBox kernel-devel kernel-headers

OpenSUSE Installation Instructions

All current versions of OpenSUSE Linux have VirtualBox available for installation. However, for the application to work on your OpenSUSE Linux system, you will need a terminal. You can open a terminal window by pressing Ctrl + Alt + T on the keyboard. Or search for “Terminal” in the application menu and launch it that way.

With the terminal window open and ready to use, run the zypper install command and install the “virtualbox” package on your computer.

sudo zypper install virtualbox

Once you run the above command, OpenSUSE will ask you for your password. Using the keyboard, enter the password for your user account. Once you have entered your password, press the Y button to confirm that you want to install VirtualBox on your OpenSUSE computer.

Generic Linux Installation Instructions

If you’re using a Linux operating system that doesn’t have native VirtualBox packages, here’s how you can install it. First, launch a terminal window. Then, once the terminal window is open, use the wget download command to grab the latest VirtualBox package.

wget https://download.virtualbox.org/virtualbox/6.1.30/VirtualBox-6.1.30-148432-Linux_amd64.run

After downloading the package, update the file permissions using the chmod command.

chmod +x VirtualBox-6.1.30-148432-Linux_amd64.run

To install VirtualBox, run the command below.

sudo ./VirtualBox-6.1.30-148432-Linux_amd64.run

Leave a Comment