You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Let’s look at how you can Install Vagrant and VirtualBox on Fedora 32/31/30/29 Linux system.  Vagrant is an open source tool for building and managing virtual machine environments in an easy-to-use single workflow. VirtualBox on the other side is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use.

Vagrant focuses on automation, lowering development environment setup time and increasing production parity. This guide will cover installation of Vagrant and VirtualBox on Fedora 31/30/29.

For KVM users, check: How to Use Vagrant with Libvirt on Linux

Install VirtualBox & Vagrant on Fedora 32/31/30/29

Vagrant depends on existing hypervisor to run and deploy Virtual Machines, this can be VirtualBox, KVM, or VMware. This guide covers the installation of VirtualBox before Vagrant on Fedora 31 / Fedora 30 / Fedora 29.

Step 1: Ensure your CPU has Intel VT or AMD-V Virtualization extensions

The first step is to confirm that your CPU has either Intel VT or AMD-V Virtualization extensions. In some systems, this is disabled on BIOS and you may need to enable it.

$ cat /proc/cpuinfo | egrep "vmx|svm"

Step 2: Add VirtualBox RPM repository

Add VirtualBox RPM repository to your Fedora 31 / Fedora 30 / Fedora 29 using the following commands:

sudo dnf -y install wget
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
sudo mv virtualbox.repo /etc/yum.repos.d/virtualbox.repo

After adding the repository, install VirtualBox

sudo dnf install -y gcc binutils make glibc-devel patch libgomp glibc-headers  kernel-headers kernel-devel-`uname -r` dkms
sudo dnf install -y VirtualBox-6.1

Add your user account to the vboxusersgroup.

sudo usermod -a -G vboxusers ${USER}

Configure VirtualBox Drivers

$ sudo /usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.

Download Extension Pack:

cd ~/
wget https://download.virtualbox.org/virtualbox/6.1.2/Oracle_VM_VirtualBox_Extension_Pack-6.1.2.vbox-extpack

You can also download it manually  https://www.virtualbox.org/wiki/Downloads. Once the file is downloaded, install the extension pack by clicking on the Downloaded file.

install virtualbox 6.0 ubuntu 18.04 16.04 debian 9 04

Step 3: Install Vagrant on Fedora 32/31/30/29

Vagrant is available on Fedora repositories, install it by running the following command on your terminal:

sudo sudo dnf -y install vagrant

Step 4: Test Vagrant and Virtualbox Setup Fedora 32/31/30/29

The best way to perform a test is by installing a VM on the new VirtualBox. Follow any of our guides below to get started.

How to install Fedora on Physical Server / VirtualBox & Vagrant

How to run Kali Linux rolling release with Vagrant on VirtualBox

As an appreciation for the content we put out,
we would be thrilled if you support us!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here