KVMVagrant


Vagrant is a tool for managing virtual machines and usually works with VirtualBox, VMWare and Hyper V

However we tried to make it work with KVM using provider libvirt

Vagrant libvirt provider to work with KVM Qemu

Below are the commands

# apt-get install --no-install-recommends qemu-kvm libvirt-clients libvirt-daemon-system
# apt-get install virtinst
# adduser <youruser> libvirt
# virsh list --all

The below is for libvirt provider with vagrant and kvm
$ sudo apt-get install ruby-dev
$ sudo apt-get -y install libvirt-dev
# vagrant plugin install vagrant-libvirt
Search for libvirt provider boxes on vagrant cloud site
do a vagrant init
then vagrant up 

For some reason it was throwing some errors about triggers which i could not resolve so left it for now and removed all the packages


These writings represent my own personal views alone.
Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.