in Developer Experience

Getting Vagrant with libvirt support on your Fedora 20

I was recently asked to package Vagrant for Fedora with libvirt support (coming with the vagrant-libvirt plugin) and this post will let you know how to install it on your machine from the new Copr repository.

Note: If you need to or want to use the upstream release, you will need to install the vagrant-libvirt plugin and its dependencies yourself. James’s post is a good start, but this post won’t discuss this.

If you wish to have an easy installation of the same thing on your Fedora 20, continue reading.

To install Vagrant you can simply install the vagrant packages from my vagrant-f20 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
name=Copr repo for vagrant-f20 owned by jstribny

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

dnf copr enable jstribny/vagrant-f20

Afterwards you are ready to install and play with Vagrant:

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

Now go start doing interesting stuff.

In case of troubles, make sure you do yum update and check the version and release of the following components (newer should be fine):

$ rpm -qa vagrant
$ rpm -qa rubygem-vagrant-libvirt
$ rpm -qa rubygem-bundler

This release does not match the upstream. It has a libvirt as a default instead of VirtualBox and it lacks the plugins adding VagrantCloud support. Also installation of other plugins may or may not work. Please let me know about the issues you encounter and let’s try to make a decent support of Vagrant for Fedora 22.

Write a Comment


  1. Glad that you’re working on this… Unfortunately, using ‘vagrant plugin install ‘ doesn’t work, and plugins are sorely needed to enhance vagrant+vagrant-libvirt :)

    Hopefully you can get this fixed ASAP, so that vagrant dev environments, can target the versions you packaged!


    • Hi James,

      I finished a new build just now (vagrant-1.6.5-13.fc20.noarch) that could solve the plugin support. I was at least able to install vagrant-hostmaster, vagrant-hostsupdater and vagrant-mutate. It generates a list of RubyGems for the Vagrant’s Gemfile in some meaningful way so Vagrant should be able to install new gems. If you have a list of plugins you use and I should test, please let me know. It’s by no means finished and for f22 I can end up with something else, but it somehow works for me now.