in Developer Experience

Getting Vagrant with libvirt support on Fedora 21

Some time ago we finished most of the work for Vagrant Fedora 22 feature. The Vagrant package is currently in the review process, but I maintain Copr repositories for both Fedora 21 and rawhide. Here is how to install Vagrant and vagrant-libvirt on Fedora 21.

Note: I already wrote about getting Vagrant on Fedora 20 .

To install Vagrant you can simply install the vagrant packages from my vagrant-f21 Copr repository. To add the Copr repository add the following file to your /etc/yum.repos.d/ directory:

$ cat /etc/yum.repos.d/vagrant.repo
[jstribny-vagrant-f21]
name=Copr repo for vagrant-f21 owned by jstribny
baseurl=http://copr-be.cloud.fedoraproject.org/results/jstribny/vagrant-f21/fedora-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=0
enabled=1

Or simply enable the repo using dnf and copr-dnf plugin (coming with dnf-plugins-core):

dnf copr enable jstribny/vagrant-f21

Afterwards you are ready to install and play with Vagrant:

$ yum install vagrant-libvirt
$# using dnf
$ dnf install vagrant-libvirt
$ vagrant
Usage: vagrant [options] <command></command>

You can of course just install Vagrant on its own without the libvirt plugin, but note that libvirt is now Vagrant’s default provider.

Now go start doing interesting stuff.

Write a Comment

Comment