How to Install VirtualBox 6.0 in Fedora 30

VirtualBox is a powerful, free, open source, feature rich, high performance and cross-platform x86 and AMD64/Intel64 visualization software for enterprise and home use. It runs on Linux, Windows, Macintosh, as well as Solaris hosts.

In this article, we will show how to install VirtualBox 6.0 on Fedora 30 distribution using official yum repository.

Note: If you are using the system as a normal or administrative user, employ the sudo command to gain root privileges to run most if not all the commands in this article.

Downloading VirtualBox Repo on Fedora 30

To install VirtualBox on Fedora Linux 30, you first need to download the virtualbox.repo configuration file using following wget command.

# wget -P /etc/yum.repos.d/
Download virtualbox.repo File

Download virtualbox.repo File

Next, update the installed packages on the system and import the virtulbox public key by running the following dnf command. This ensures that all system updates are installed and that the system is running the most up-to-date kernel included in the distribution.

# dnf update 
Update Fedora Packages

Update Fedora Packages

Installing Development Tools on Fedora 30

If you want to run the Oracle VM VirtualBox graphical user interfaces (VirtualBox), you need to install Qt and SDL packages. However, if you only want to run VBoxHeadless, the aforementioned packages aren’t required.

In addition, the installer will create kernel modules on the system, therefore you need to install development tools (GNU compiler (GCC), GNU Make (make)) and packages containing header files for your kernel for the build process as well.

# dnf install @development-tools
# dnf install kernel-devel kernel-headers dkms qt5-qtx11extras  elfutils-libelf-devel zlib-devel

Installing VirtualBox 6.0 on Fedora 30

Once the required packages and development tools installed, you can now install VirtualBox 6.0 with the following dnf command.

# dnf install VirtualBox-6.0
Install Virtualbox in Fedora

Install Virtualbox in Fedora

During the VirtualBox package installation, the installer created a group called vboxusers, all system users who are going to use USB devices from Oracle VM VirtualBox guests must be a member of that group.

To add a user to that group, use the following usermod command.

# usermod -a -G vboxusers tecmint

At this point, you are ready to start using VirtualBox on your Fedora 30. Search for VirtualBox in the Activities search feature and click on it to launch it.

Alternatively, execute the following command to start VirtualBox from the terminal.

# virtualbox

Read Also: How to Enable USB in VirtualBox

Congratulations! You just installed VirtualBox 6.0 on Fedora 30. If you have any questions or thoughts to share with us, use the feedback form below.

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

1 Response

  1. Jayshankar says:

    /sbin/vboxconfig Stopping VirtualBox services.
    depmod: WARNING: could not open /lib/modules/4.20.3-200.fc29.x86_64/modules.order: No such file or directory
    depmod: WARNING: could not open /lib/modules/4.20.3-200.fc29.x86_64/modules.builtin: No such file or directory Starting VirtualBox services. Building VirtualBox kernel modules. failed: modprobe vboxdrv failed. Please use ‘dmesg’ to find out why.

    There were problems setting up VirtualBox. To re-start the set-up process, run
    as root. If your system is using EFI Secure Boot you may need to sign the
    kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
    them. Please see your Linux system’s documentation for more information.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.