Home Linux How to install VirtualBox 6 on Fedora Linux 29

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 https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

Refresh and import public key

Run the following dnf command:
$ sudo dnf update

Search for virtualbox package

Now we can search for Oracle VM VirtualBox
$ yum search virtualbox

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

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 start VirtualBox on Fedora Linux 29

Type the following command:
$ virtualbox

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 https://www.opensuse.org/. I am going to use wget command to download the ISO:
wget https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.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

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

Create Virtual Machine

Set up guest VM hard disk file size:

Create Virtual Hard Disk

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

Let us change VM options by clicking the Settings option

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

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:

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:

Go ahead install OpenSUSE Linux


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 >

OpenSUSE VM: Insert guest additions CD image

Click on Run to install the Guest Additions:

Run VirtualBox guest additions script

Wait for some time:

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




Please enter your comment!
Please enter your name here

Exit mobile version