How to Install VirtualBox on CentOS 8?

How to Install VirtualBox on CentOS 8?

In this CentOS tutorial, we will explain how to install VirtualBox on CentOS 8. VirtualBox is an open-source, cross-platform virtualization platform. It supports a number of guest operating systems, including Linux and Windows, and allows you to run multiple virtual machines simultaneously.

VirtualBox is an open-source, cross-platform virtualization platform. It supports a number of guest operating systems, including Linux and Windows, and allows you to run multiple virtual machines simultaneously.

In this tutorial, we will explain how to install VirtualBox on CentOS 8.

Installing VirtualBox on CentOS 8

Perform the steps below as root or user with sudo privileges to install VirtualBox on CentOS 8:

  1. Enable the Oracle's VirtualBox repository:

    sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
  2. At the time of writing this article, the latest stable version of VirtualBox is version 6.0.x. Run the following command to install the VirtualBox-6.0 package:

    sudo yum install VirtualBox-6.0

    During the installation, you will be prompted to import repository the GPG key. Type y and hit Enter.

That's it. At this point, VirtualBox has been installed on your CentOS 8 system.

Installing VirtualBox Extension Pack

The VirtualBox Extension Pack provides several useful functionalities for guest machines such as virtual USB 2.0 and 3.0 devices, support for RDP, image encryption, and more.

Use wget to download the extension pack from the VirtualBox download page:

wget https://download.virtualbox.org/virtualbox/6.0.14/Oracle_VM_VirtualBox_Extension_Pack-6.0.14.vbox-extpack

Once the file is downloaded, import it using the following command:

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.0.14.vbox-extpack

You will be presented with the Oracle license and prompted to accept the terms and conditions.

Do you agree to these license terms and conditions (y/n)?

Type y and hit Enter. When the installation is complete, you'll see the following output:

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

Starting VirtualBox

Now that VirtualBox has been installed on your CentOS machine, you can start it either from the command line by typing VirtualBox or by clicking on the VirtualBox icon (Activities -> Oracle VM VirtualBox).

When the VirtualBox is started for the first time, a window like the following should appear:

From here, you can start creating your Windows and Linux virtual machines.

Conclusion

Installing VirtualBox on CentOS 8 is a straightforward task. All you need to do is to enable the Oracle repository and install the VirtualBox package with dnf.

For more information about VirtualBox visit the official VirtualBox documentation page.

If you hit a problem or have feedback, leave a comment below.

VirtualBox CentOS Linux

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Centos Linux 7 Installation Tutorial and First Look

This video explains how to install CentOS Enterprise Linux 7 server operating systems.

How to Install VirtualBox on Debian Linux 10 Linux

VirtualBox on Debian Linux 10 Linux. VirtualBox packages are not available in the default Debian 10 repositories. We'll download and install ...

Hire Dedicated Linux Developer

Looking to develop real-time applications? **[Hire Dedicated Linux Developer](https://hourlydeveloper.io/hire-dedicated-linux-developer/ "Hire Dedicated Linux Developer")** from **[HourlyDeveloper.io](https://hourlydeveloper.io/...

Install VirtualBox Guest Additions in Linux Mint Step by Step

In this tutorial I will show you how to install VirtualBox guest additions in Linux Mint virtual machine, so you can enabel shared folder and clipboard.

User Administration in Linux - Linux Tutorial - Linux Training

User Administration in Linux - Linux Tutorial - Linux Training