VirtualBox is open-source and cross-platform software that is mainly used for virtualization purposes. By using VirtualBox, users can run multiple virtual machines on a single machine. This application is used for desktop level. It supports different guest operating system flavors in which Windows and Linux are included. VirtualBox comes in handy for example when you are trying to explore features of different operating system distributions or develop software.
This article will give you the details about the installation of the VirtualBox application on the CentOS 8 system.
You must have administrative privileges to run all commands.
All steps are executed on the Terminal application. Therefore, open the Terminal window from the sidebar of your desktop by clicking on the ‘Activities’ section. Now, type the below-given command to log in as the administrator on your system.
Installing VirtualBox on CentOS 8
Execute the following steps to install the VirtualBox on CentOS 8 system:
Step 1: Enable the VirtualBox and Epel repository
Run the below-mentioned command to enable the Oracle’s VirtualBox and epel repository:
$ sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
Step 2: Install Oracle’s VirtualBox
In the next step, install the latest VirtualBox stable version on your CentOS system. The latest available stable version of VirtualBox is 6.1.x, while we are writing this article. You can also check the latest available version from the VirtualBox official page. Execute the below-mentioned command on the terminal to install the VirtualBox 6.1 package:
$ sudo yum install VirtualBox-6.1
The confirmation prompt to import GPG of the VirtualBox repository appears during the installation on the terminal window. To continue the VirtualBox installation process, enter ‘y’ and then press the ‘Enter’ key.
That’s all about the VirtualBox installation. VirtualBox is installed on your system CentOS 8.
Step 3: Install Extension Pack of VirtualBox
Once the installation of VirtualBox is completed, install the VirtualBox extension pack that provides advanced functionalities for guest machines. The major features are supported for RDP, virtual USB support to 2.0 and 3.0 devices, image encryption, and more others.
First, download the VirtualBox extension pack by using the ‘wget’ command from the download page of VirtualBox:
$ wget https://download.virtualbox.org/virtualbox/6.1.18/Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack
Once the extension pack is downloaded, type the following command to import or install the downloaded packages:
$ VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack
The following Oracle license agreement appears on the terminal, press ‘y’ and ‘Enter’ to accept the terms and conditions:
Step 4: Launch VirtualBox
Once the VirtualBox extension pack is installed, you can launch VirtualBox on your CentOS 8 system. Type following command on the terminal to Launch VirtualBox through the command-line:
VirtualBox can launch through the graphical interface. Find the application search bar by clicking on the ‘Activities’ and then write the ‘virtualbox’ keyword in the search bar as follows:
Click on the icon of VirtualBox to launch this software. The following VirtualBox interface appears on the desktop, when you first time Launch VirtualBox software on your system:
Now, VirtualBox has been installed on your CentOS 8 Linux system. You can create new virtual machines like Windows and Linux distributions.
We have provided you the complete installation guide of VirtualBox on the CentOS 8 system in this article. Further, we have learned how you can download and install the necessary VirtualBox extension packages on your system. From the above implementation, you can now easily install Oracle’s VirtualBox application on CentOS 8 environment. Submit your comment requests in case of any difficulty. We will try to solve your issues.