How To Install VirtualBox 6.1 on CentOS 8 / RHEL 8

Install VirtualBox on CentOS 8 & also on RHEL 8 Linux. Here, We will see how to install VirtualBox on CentOS 8 / RHEL 8. Oracle VirtualBox requires an existing OS to be installed and thus run alongside existing applications on that host. The installation should be straightforward on any Linux system with Linux kernel 2.6 or 3.x.

Starting with Oracle VirtualBox, the SSE2 CPU extension is required. The installer with automatically builds and installs the Oracle VirtualBox kernel modules: vboxdrv, vboxnetflt, and vboxnetadp.

Step 1: Adding VirtualBox / EPEL repository

Add the VirtualBox repository to the local system by downloading virtualbox.repo file and placing it under /etc/yum.repos.d directory.

sudo dnf -y install wget
sudo mv virtualbox.repo /etc/yum.repos.d/

Import Oracle public key:

wget -q
sudo rpm --import oracle_vbox.asc

We also need to add EPEL repository:

sudo dnf -y install

Step 2: Install VirtualBox

Download required build tools for VirtualBox.

sudo dnf -y install binutils kernel-devel kernel-headers libgomp make patch gcc glibc-headers glibc-devel dkms

Now install the latest version of VirtualBox 6.1 by running the command:

sudo dnf install -y VirtualBox-6.1

The installation command will build kernel modules and automatically create vboxusers group. Any system user who is going to use USB devices from Oracle VM VirtualBox guests must be a member of that group.

To manually add VirtualBox user must to be a member of the group.

sudo usermod -aG vboxusers $USER

To rebuild Kernel modules, run:

sudo /usr/lib/virtualbox/ setup

Step 3: Starting VirtualBox

You have the flexibility of starting Oracle VM VirtualBox program by running the program of your choice (VirtualBox, VBoxManage, or VBoxHeadless) from a terminal.

$ VirtualBox

Alternatively start VirtualBox 6.1 on RHEL 8 / CentOS 8 from GUI by navigating to Application >> System Tools >> Oracle VM VirtualBox.

install virtualbox ubuntu 18.04 debian 9 01 min 1

Download Extension Pack:

cd ~/

Click the file to install it.

Was this helpful?

0 / 0

Leave a Reply 2

Your email address will not be published. Required fields are marked *

zortilo nrel

zortilo nrel

Simply wanna tell that this is invaluable, Thanks for taking your time to write this.



Very nice write-up. I definitely appreciate this site. Thanks!