How To Install VirtualBox 6 on Fedora 36/35/34/33/32

Posted on 333 views

Let’s look at how you can Install VirtualBox 6 on Fedora 36/35/34/33/32. 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 36/35/34/33/32.

Below are the steps used to install VirtualBox 6 on Fedora Linux Desktop operating system. It recommended to perform OS upgrade before you install VirtualBox:

sudo dnf -y upgrade
sudo reboot

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 36:

cat <

Fedora 35:

cat <

Fedora 34:

cat <

Fedora 33:

cat <

Fedora 32:

cat <

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) "
 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 36/35/34/33/32

Lastly, install VirtualBox 6 on Fedora 36/35/34/33/32:

$ 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 36/35/34/33/32

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

install-virtualbox-6-fedora-search-1024x194

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

Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.