
VirtualBox is an open source and free virtualization software which allows you to run multiple operating systems simultaneously. It’s also a cross-platform software which is available for Linux, Windows, and MacOS etc. The VirtualBox package is not also available in Debian repositories. So we will install through Oracle repositories. In this tutorial we are going to show you how to install VirtualBox on CentOS 8 system.
Step 1 – Prerequisites
Before you go ahead with tutorial, Make sure that you are logged in as a non-root user with sudo privileges.
Step 2 – Install VirtualBox from Oracle Repositories
At the time of writing this article, the latest version of VirtualBox is 6.1.0. You should check the latest version of VirtualBox at VirtualBox Download page.
First, you need to enable the Oracle Linux repository using the following command:
sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
Once the repository is enabled, install VirtualBox using below command:
sudo yum install virtualbox-6.1.0
At this step the Virtualbox is installed on your CentOS 8 system.
Step 3 – Install VirtualBox Extension Pack
You should install VirtualBox Extension Pack to get several useful features for guest machines. It will provides features such as virtual USB 2.0 and 3.0 devices, images encryption and support for RDP etc. Run the below command using wget to download extension:
wget https://download.virtualbox.org/virtualbox/6.1.0/Oracle_VM_VirtualBox_Extension_Pack-6.1.0.vbox-extpack
Once the download completed import the extension package using VBoxManage command typing:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.0.vbox-extpack
It will show you Oracle license and ask to accept their terms and conditions.
Do you agree to these license terms and conditions (y/n)?
Press y
to continue, Once the installation is completed you will see the following output:
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully installed "Oracle VM VirtualBox Extension Pack".
Step 4 – Start VirtualBox
Now that VirtualBox is installed on your CentOS system and ready to use. You can launch using terminal by typing virtualbox
or you can by clicking on VirtualBox icon from (Activities -> Oracle VM VirtualBox
).
You will show window as following on start up of VirtualBox.

Conclusion
You have learned how to install VirtualBox on your CentOS 8 system. You also can install your favorite another operating system on guest machine. If you would like to get more details about VirtualBox visit the official VirtualBox documentation page.
If you have any question or suggestion, please leave comment below.
Leave a Reply