How to Install VirtualBox 6 on Fedora 30/29/28

(: May 3, 2019)

Let’s look at how you can Install VirtualBox 6 on Fedora 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 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.{text-align:left} img{margin:0 auto 0 0}
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 
name=Fedora $releasever - $basearch - VirtualBox

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       :
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.0
Last metadata expiration check: 0:03:59 ago on Fri 03 May 2019 01:00:52 AM EAT.
Dependencies resolved.
 Package                              Architecture     Version                            Repository            Size
 VirtualBox-6.0                       x86_64           6.0.6_130049_fedora29-1            virtualbox           115 M
Installing dependencies:
 compat-libvpx5                       x86_64           1.7.0-1.fc30                       fedora               793 k
 gdbm                                 x86_64           1:1.18-4.fc30                      fedora               116 k
 libxcrypt-compat                     x86_64           4.4.4-2.fc30                       fedora                43 k
 python2                              x86_64           2.7.16-1.fc30                      fedora                46 k
 python2-libs                         x86_64           2.7.16-1.fc30                      fedora               6.3 M
Installing weak dependencies:
 python-unversioned-command           noarch           2.7.16-1.fc30                      fedora                13 k
 python2-pip                          noarch           19.0.3-1.fc30                      fedora               1.8 M
 python2-setuptools                   noarch           40.8.0-1.fc30                      fedora               644 k

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

Other Fedora articles:

Install Pantheon Desktop Environment on Fedora

Install Deepin Desktop Environment on Fedora

Install KDE Plasma Desktop Environment on Fedora{text-align:left} img{margin:0 auto 0 0}
Previous Post

How to Install Elasticsearch 7,6,5 on Ubuntu 19.04/18.04/16.04

Next Post

Install Pantheon Desktop Environment on Fedora 30

Related Posts