How to Install VirtualBox on CentOS 8

Install VirtualBox on CentOS 8

In this article, we will have explained the necessary steps to install and configure VirtualBox on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

VirtualBox is an open-source hypervisor software that helps you create and run multiple guest operating systems (“virtual machines”) on a single hardware machine. Oracle VM VirtualBox lets you create one or more VMs on a single physical server. Virtual Machines are computers that use the hardware components of the host computer, each running its own operating system. VB supports the installation of MS Windows, Linux, BDS, and MS-DOS on the installed VMs.

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install VirtualBox.

Now, enable the Oracle’s VirtualBox repository:

Then, run the following command to install the VirtualBox package:

Step 3. Install VirtualBox extension on CentOS 8.

The VirtualBox Extension Pack provides several useful functionalities for guest machines such as virtual USB 2.0 and 3.0 devices, support for RDP, image encryption, and more:

Then, import the extension pack using the following command:

Step 4. Accessing VirtualBox.

Now that VirtualBox is installed on your CentOS system, you can start it either from the command line by typing VirtualBox or by clicking on the VirtualBox icon (Activities -> Oracle VM VirtualBox).

Congratulation, you have learned how to install and configure VirtualBox on CentOS 8. If you have any question, please leave a comment below.