Notes to self

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):

$ sudo dnf copr enable jstribny/vagrant-f21

Afterwards you are ready to install and play with Vagrant:

$ sudo yum install vagrant-libvirt
$# using dnf
$ sudo dnf install vagrant-libvirt
$ vagrant
Usage: vagrant [options] <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.

Work with me

I have some availability for contract work. I can be your fractional CTO, a Ruby on Rails engineer, or consultant. Write me at strzibny@strzibny.name.

RSS