Monday, May 27, 2013

Vagrant and libvirt (Holy Grail?)

After looking at the vagrant-kvm plugin I found a list of all the Vagrant plugins. This turns out to have vagrant-libvirt as a plugin. libvirt is a library used to control many different virtualization technologies. You can think of it as a common API for hypervisors like KVM/QEMU, Xen, LXC, OpenVZ, Virtualbox, VMware, and Hyper-V. From my experience with OpenStack, I quickly understood the power of this plugin.

In the README for vargrant-libvirt it explains the installation process very clearly. One of the things that makes vagrant really nice now is that you can setup simple puppet or chef provisioning to the instance that you create. It is just a simple configuration change to the Vagrantfile and you are on your way.

Here is the base Vagrantfile for libvirt.

Wednesday, May 8, 2013

Using Vagrant outside of the "Norm"

Vagrant has come along way with the version 1.0. Now you are freed from the handcuffs of Virtualbox. This is great news to be able to use any type of virtual machine. KVM is a common virtual machine used in production environments and its built in to linux. All it takes is installing a few packages and you can be up and running vagrant with kvm.

There is are a couple things that we need do first.
Install Vagrant's latest version from the download site.

Then install the plugin.
Once installed then we need to get a box and convert it for the kvm provider.
Here is a simple Vagrantfile you need to spin up your own KVM vagrant instance.

This is about as easy as it gets.

The code base for vagrant-kvm is located here. https://github.com/adrahon/vagrant-kvm#quick-start

Monday, May 6, 2013

My git .gitconfig customization

My .gitconfig has a couple nice alias's that i have found extremely helpful. I've found a couple around the internet as well and i think they are useful.