VirtualBox is an open source, cross-platform virtualization platform. It supports a range of guest operating systems, including Linux and Windows, and allows multiple virtual machines to run concurrently.
In this article, we’ll show you how to install VirtualBox on CentOS 8.
Installing VirtualBox on CentOS 8
To install VirtualBox on CentOS 8, follow the steps below as root user or a user with sudo privileges:
- Enable the Oracle VirtualBox repository:
sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
- At the time of this writing, the latest stable release of VirtualBox is 6.0.x. Run the following command to install the VirtualBox-6.0 package:
sudo yum install VirtualBox-6.0
During installation, you will be prompted to import the GPG key into the repository. Type y and press Enter.
That’s all. At this point VirtualBox is installed on your CentOS 8 system.
Installing the VirtualBox Extension Pack
The VirtualBox Extension Pack provides several useful features for guest machines such as USB 2.0 and 3.0 virtual devices, RDP support, image encryption, and more.
Use wget to download the extension pack from the VirtualBox download page:
After downloading the file, import it using the following command:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.0.14.vbox-extpack
You will be granted an Oracle license and asked to accept the terms and conditions.
Do you agree to these license terms and conditions (y/n)?
Type y and press Enter. After the installation is complete, you will see the following output:
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully installed "Oracle VM VirtualBox Extension Pack".
Now that VirtualBox is installed on your CentOS machine, you can launch it from the command line by typing VirtualBox or by clicking on the VirtualBox icon (Activities -> Oracle VM VirtualBox).
When VirtualBox is launched for the first time, a window similar to the following should appear:
From here, you can start creating your Windows and Linux virtual machines.
Installing VirtualBox on CentOS 8 is a simple task. All you have to do is enable the Oracle repository and install the VirtualBox package using dnf.
For more information on VirtualBox visit the official VirtualBox documentation page.
If you run into an issue or have feedback, please leave a comment below.