How to install VirtualBox 6 on Fedora Linux 29

I am a new Fedora Linux user. How can I download and install Oracle VirtualBox 6 on my Fedora Linux 29 workstations?

Introduction – Oracle VirtualBox is an open source and free hypervisor/virtual machine monitor for x86 based computers. VirtualBox 6 supports Linux, Windows, *BSD and other types of guest VMs. This page shows how to install Oracle VirtualBox 6 on Fedora Linux 29.

Procedure to install VirtualBox on Fedora Linux 29

  1. Install virtualbox.repo on Fedora Linux 29 using wget command
  2. Import VirtualBox 6 public key in Fedora Linux 29, run: sudo dnf update
  3. Search for VirtualBox 6 packages on Fedora, run: sudo dnf search virtualbox
  4. To install Oracle VirtualBox 6 on Fedora, run: sudo dnf install virtualbox
  5. Upgrade Oracle VirtualBox 6 in Fedora Linux, run: sudo dnf upgrade virtualbox

Let us see all examples and usage in details.

Download VirtualBox for Fedora Linux

Create a new RPM repo, run the following cd command:
$ cd /etc/yum.repos.d
Use the wget command to download virtualbox.repo file:
$ sudo wget
How to download VirtualBox for Fedora Linux hosts

Refresh and import public key

Run the following dnf command:
$ sudo dnf update
How to import Oracle VirtualBox public key

Search for virtualbox package

Now we can search for Oracle VM VirtualBox
$ yum search virtualbox
How to search for VirtualBox packages using dnf on Fedora Linux

Fedora Linux install VirtualBox 6

Oracle VirtualBox 6 will build Linux kernel modules on Fedora Linux 29. So, make sure the following packages installed on your system:
$ sudo dnf install @development-tools
$ sudo dnf install kernel-devel kernel-headers dkms elfutils-libelf-devel qt5-qtx11extras

Now you are ready to install VirtualBox 6, run the following dnf command:
$ sudo dnf install VirtualBox-6.0
Install VirtualBox 6 on Fedora Linux using dnf command

Add VirtualBox user to vboxusers group

The installer gave you hint:

Creating group ‘vboxusers’. VM users must be member of that group!

Hence, you must add Linux user to the vboxusers group, run:
$ sudo usermod -a -G vboxusers {userNameHere}
$ sudo usermod -a -G vboxusers vivek

Verify it with the help of the id command:
$ id vivek
Reload or refresh a Linux user group permission for the current shell session by running the following newgrp command:
$ newgrp vboxusers
$ id

How to add VirtualBox user to vboxusers group on Fedora Linux

How to start VirtualBox on Fedora Linux 29

Type the following command:
$ virtualbox
How to start VirtualBox on Fedora Linux

Installing OpenSUSE Linux as a VirtualBox guest

Once VirtualBox installed, it is time to install a virtual machine. I am going to install OpenSUSE Tumbleweed. You can install Windows, OpenBSD/FreeBSD, CentOS, Debian, Ubuntu or any other supported guest operating systems as per your needs.

Download the OpenSUSE ISO

In order to install OpenSUSE Linux, you need the installation DVD media. You can download OpenSUSE from I am going to use wget command to download the ISO:

How to create a new virtual machine

The VirutalBox GUI is easy to use, and it will help you through the VM creation. Click on the New icon:

Click on the New icon

Click on the “New” icon

Set up guest VM name, OS and memory size as follows:
Create Virtual Machine

Create Virtual Machine

Set up guest VM hard disk file size:
Create Virtual Hard Disk

Create Virtual Hard Disk

The empty VM is now ready. You need click on the Settings option:
Oracle VM OpenSUSE settings

Let us change VM options by clicking the Settings option

Choose virtual optical discs (DVD) for booting VM as follows:
Storage settings

Storage settings to choose the ISO file previously downloaded using wget

Choose Empty in the IDE controller, then the CD icon. Select the ISO image downloaded earlier and press OK:

OpenSUSE Boot DVD ISO for my VM

Start up the OpenSUSE VM and install OpenSUSE Linux

Let us start installation of OpenSUSE Linux:

Install OpenSUSE VM

Choose OpenSUSE VM in left side panel and click on the green start arrow.

The OpenSUSE Linux boot process begins. You can now continue with the normal installation process. Just follow on-screen instructions:
Starting installation of VM

Go ahead install OpenSUSE Linux

Performing installation

Performing installation

Installing the Guest Additions for OpenSUSE VM

I am going to install the latest Version of the Guest Additions. Start OpenSUSE VM. Log in and open the terminal application. Run the following zypper command:
sudo zypper ref
sudo zypper up
sudo zypper in kernel-devel gcc make dkms

Once installed, click on the VM > Devices >

Insert guest additions CD image

OpenSUSE VM: Insert guest additions CD image

Click on Run to install the Guest Additions:
Run VirtualBox guest additions script

Run VirtualBox guest additions script

Wait for some time:
VirtualBox guest additions installation completed

VirtualBox guest additions installation completed

Reboot the Linux VM by typing the following reboot command:
$ sudo reboot


That is all for now. Next time we will see how to migrate VirtualBox VM to KVM. For further information see the following resources:

  • Oracle VirtualBox site here
  • OpenSUSE VirtualBox wiki page here

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

Comments on this entry are closed.

  • 🐧 Vivek Gite Jan 14, 2019 @ 14:24

    Please use our forum if you stuck with installing VirtualBox on Fedora Linux.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum