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 34/33/32/31/30. 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 34/33/32/31/30.

Below are the steps used to install VirtualBox 6 on Fedora 34/33/32/31/30.

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.

Fedora 34:

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

Fedora 33:

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

Fedora 32:

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

Fedora 31:

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

Fedora 30:

cat <<EOF | sudo tee /etc/yum.repos.d/virtualbox.repo 
[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/30/\$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                                                                                                            58  B/s | 181  B     00:03
Fedora  -  - VirtualBox                                                                                                           906  B/s | 1.7 kB     00:01
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 34/33/32/31/30

Lastly, install VirtualBox 6 on Fedora 34/33/32/31/30:

$ 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 34/33/32/31/30

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

install virtualbox 6 fedora search

To launch it from the terminal, run:

$ virtualbox

For using VirtualBox, check How To Install Fedora – 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

As an appreciation for the content we put out,
we would be thrilled if you support us!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here