Share your love
How To Install VirtualBox on AlmaLinux 8

In this guide, we will teach you how to install VirtualBox on AlmaLinux 8. VirtualBox is a GUI and command-line tool that allows you to deploy servers, desktops, and embedded operating systems as VMs. A single VirtualBox host can deploy as many guest VMs as the host hardware can handle.
VirtualBox consists of hosts and guests. The host houses the VirtualBox software that can then deploy the guests. A guest is any supported operating system running as a VM. A VirtualBox host can be run on Linux, Windows, or macOS, whereas a VirtualBox guest can consist of any Linux distribution, Solaris, macOS, BSD, IBM OS/2, or Windows.
You can now proceed to the guide steps below on the Orcacore website to complete VirtualBox setup on AlmaLinux 8.
Table of Contents
Steps To Install VirtualBox on AlmaLinux 8
To install VirtualBox, you must log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide on the Initial Server Setup with AlmaLinux 8.
Now, follow the steps below to complete this guide.
1. Add VirtualBox Repository on AlmaLinux 8
By default, VirtualBox packages aren’t available in the default AlmaLinux repository. So you need to add it manually to your server. To do this, you can use the following command:
sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo

Then, update your local package index with the following command:
sudo dnf update -y
In your output, you should see VirtualBox repository has been added.

Then, run the following command to install the EPEL release and enable PowerTools:
# sudo dnf install epel-release -y
# sudo dnf config-manager --set-enabled powertools
2. Install Latest Version of VirtualBox on AlmaLinux 8
At this point, you can list available versions of VirtualBox on AlmaLinux 8 by running the command below:
sudo dnf search virtualbox

As you can see, the latest available version of VirtualBox is 7.1. To install it on your server, run the command below:
sudo dnf install VirtualBox-7.1 -y
Once you are done, proceed to the following step to get the VirtualBox extension pack.
3. Install VirtualBox Extension Pack
At this point, you can add a VirtualBox Extension Pack to have support for various VirtualBox functions. To do this, visit the VirtualBox Downloads page, and click on Accept and download.

Click on All Supported Platforms to download it. Then, from your command terminal, switch to your downloads directory:
cd Downloads
Finally, use the VBoxManage tool for the installation of the Extension Pack:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-*.vbox-extpack
Accept the License when it prompts for the same.
4. Launch Oracle VM VirtualBox
At this point, you can start your VirtualBox application on AlmaLinux 8. To do this, go to Activities, click on “Show Applications,” and then click the icon of this open-source virtualization platform.
Also, you can launch VirtualBox from the command line. Simply type the following command:
virtualbox
You will see the Oracle VM VirtualBox Manager:

That’s it. You are done.
Conclusion
In conclusion, installing VirtualBox on AlmaLinux 8 is a straightforward process that involves enabling the required repositories and installing dependencies. VirtualBox provides a reliable and efficient virtualization environment for running multiple operating systems on your AlmaLinux 8 system.
Hope you enjoy it. Please subscribe to us on Facebook and Twitter.
You may also like to read the following articles:
Resolve signature verification error in Kali Linux