You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Let’s look at how you can Install VirtualBox 6 on Fedora 31/30/29/28. Oracle VirtualBox is free and open source hypervisor for x86 and AMD64/Intel64 computers. VirtualBox runs on Windows, Linux and BSD systems. This guide will show you how to install Oracle VirtualBox 6 on Fedora Linux 31/30/29.

Below are the steps used to install VirtualBox 6 on Fedora 30/29.

Step 1: Install Dependencies

Let’s start by installing Development Tools required for building VirtualBox Linux kernel modules on Fedora.

sudo dnf -y install @development-tools
sudo dnf -y install kernel-headers kernel-devel dkms elfutils-libelf-devel qt5-qtx11extras

Step 2: Add VirtualBox RPM repository

The latest VirtualBox packages are available on the RPM repository provided by VirtualBox development. Add it to your Fedora system using below command.

cat <<EOF | sudo tee /etc/yum.repos.d/virtualbox.repo 
[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/29/\$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
EOF

Step 3: Import VirtualBox GPG Key

After adding the repository, import the GPG key used for signing packages.

$ sudo dnf search virtualbox
Fedora  -  - VirtualBox                                                              159  B/s | 181  B     00:01    
Fedora  -  - VirtualBox                                                              835  B/s | 1.7 kB     00:02    
Importing GPG key 0x98AB5139:
 Userid     : "Oracle Corporation (VirtualBox archive signing key) <[email protected]>"
 Fingerprint: 7B0F AB3A 13B9 0743 5925 D9C9 5442 2A4B 98AB 5139
 From       : https://www.virtualbox.org/download/oracle_vbox.asc
Is this ok [y/N]: y

Press “y” when prompted.

Step 4: Install VirtualBox 6 on Fedora 30/29/28

Lastly, install VirtualBox 6 on Fedora 30/29/28.

$ sudo dnf install VirtualBox-6.1
...
Transaction Summary
=====================================================================================================================
Install  9 Packages

Total download size: 125 M
Installed size: 279 M
Is this ok [y/N]: y

Step 5: Add your user to the vboxusers group

The vboxusers group is created automatically during installation. Add your user account to this group to operate VirtualBox without sudo.

$ sudo usermod -a -G vboxusers $USER
$ newgrp vboxusers
$ id $USER
uid=1000(jmutai) gid=1000(jmutai) groups=1000(jmutai),10(wheel),976(vboxusers)

Step 6: Launch VirtualBox on Fedora 31/30/29/28

Use your Desktop environment search feature to find VirtualBox and launch it.

To launch it from the terminal, run:

$ virtualbox

For using VirtualBox, check How To Install Fedora 30 – Step by Step With Screenshots

For KVM: Install KVM on Fedora

Other Fedora articles:

Install Pantheon Desktop Environment on Fedora

Install Deepin Desktop Environment on Fedora

Install KDE Plasma Desktop Environment on Fedora

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF