Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lucaslz/5dcafbbe00e862f83d3c3f3551d43f08 to your computer and use it in GitHub Desktop.
Save lucaslz/5dcafbbe00e862f83d3c3f3551d43f08 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 libvirt

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