Install Virtualbox on CentOS
VirtualBox is an open-source and cost-feree virtualization tool from Oracle. It is considered one of the best cross-platform tools for setting up and managing a large number of virtual machines at once inside an operating system. Almost every popular operating system, including macOS, Windows, and Linux, can run VirtualBox.
We’ll show you how to set up VirtualBox on a CentOS 8 Workstation in this guide. Let’s start.
Installing VirtualBox on CentOS
The VirtualBox installation on the CentOS Linux distribution is not much complex as you think. This virtualization tool can install on CentOS by adding and installing a VirtualBox repository. You can easily install the most recent stable version of Virtualbox on CentOS 8 by executing the following steps:
Step 1: Update system repositories
First, update all the metadata cache by using this command:
$ sudo dnf makecache
After that, upgrade the system’s packages by using the following command:
$ sudo dnf upgrade
Step 2: Add VirtualBox Repository
Once you update all system packages, add the VirtualBox repository to your system by using this command:
$ sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
Step 3: Install VirtualBox on CentOS 8
Once the Virtualbox repository is added to your system, you can install the latest stable version of VirtualBox on a CentOS 8 machine using this command:
$ sudo dnf install -y VirtualBox-6.1
In the above command, the ‘-y’ flag ignores entering ‘Yes’ to every prompt that appears during the installation. This command will automatically import all GPG keys and installation dependencies on your system.
Once the VirtualBox installation is completed on your CentOS system, you will see the following output on the terminal window.
Step 4: Launch VirtualBox on CentOS 8
Virtualbox can launch on CentOS 8 system using two different ways. First, type “Virtualbox” on the command and hit “Enter”:
Second, access the ‘Activities’ menu and search for Virtualbox. Launch Virtualbox on CentOS 8 by clicking on the VirtualBox icon.
How to install VirtualBox Extension Pack?
After installing the VirtualBox on CentOS 8, you can install its supportive Extension pack on your system. To do this, download the Virtualbox extension pack using the `wget` command:
$ wget https://download.virtualbox.org/virtualbox/6.1.6/Oracle_VM_VirtualBox_Extension_Pack-6.1.6.vbox-extpack
Now, install the latest version of the Virtualbox extension pack for Virtualbox 6.1 by executing this command:
$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.6.vbox-extpack
If you agree with the Virtualbox extension pack’s license terms and conditions, press “Y” and hit “Enter”.
After, it will take a few seconds to complete the Virtualbox extension pack’s installation on your Linux system.
Virtualbox installation is completed. You can now enjoy the features of Virtualbox on CentOS 8.
This guide explained how to install Virtualbox on a CentOS 8 machine. Furthermore, we demonstrated how to install the most recent version of the Virtualbox extension pack for the Virtualbox 6.1 release. That’s all about Virtualbox installation on a Linux system. You can get more information about Virtualbox by visiting the official Virtualbox Documentations. Thanks!