Skip to content

Instantly share code, notes, and snippets.

@gangsta
Last active April 10, 2019 15:23
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save gangsta/aad6aa9ecabe2cde2835229a78b98e09 to your computer and use it in GitHub Desktop.
Save gangsta/aad6aa9ecabe2cde2835229a78b98e09 to your computer and use it in GitHub Desktop.
Install Vagrant and Virtualbox on Fedora 27

How to Install Vagrant and Virtualbox Fedora 27

Check for cpu Virtualization

lsmod | grep kvm
kvm_intel             167936  3
kvm                   499712  1 kvm_intel

Install

sudo dnf install vagrant -y
cd /etc/yum.repos.d/
sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
sudo dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
sudo dnf install VirtualBox-5.2
sudo /usr/lib/virtualbox/vboxdrv.sh setup
sudo usermod -a -G vboxusers ${USER}

Test

vagrant init centos/7
vagrant up --provider virtualbox

Error ?

Vagrant has detected that you have a version of VirtualBox installed
that is not supported by this version of Vagrant. Please install one of
the supported versions listed below to use Vagrant:

4.0, 4.1, 4.2, 4.3, 5.0, 5.1

# Go to -> https://www.vagrantup.com/downloads.html
# Download latest Vagrant

# run this .
vagrant plugin repair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment