(Last Updated On: November 15, 2018)

Let’s look at how you can Install Vagrant and Virtualbox on Fedora 29 / Fedora 28.  Vagrant is an open source tool for building and managing virtual machine environments in an easy-to-use single workflow.

Vagrant focuses on automation, lowering development environment setup time and increasing production parity.

Install Vagrant on Fedora 29 / 28 Pre-requisite

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 29 and Fedora 28.

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 29 / Fedora 28 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 dkms
sudo dnf install -y VirtualBox-5.2

Add your user account to the vboxusersgroup.

sudo usermod -a -G vboxusers ${USER}

Configure VirtualBox Drivers

sudo /usr/lib/virtualbox/vboxdrv.sh setup

Step 3: Install Vagrant

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 29 / Fedora 28

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 29 on Physical Server / VirtualBox & Vagrant

How to run Kali Linux rolling release with Vagrant on VirtualBox