Vagrant

Installation

gem install Vagrant

Libvirt support

  • You need at least version 1.1
  • Install libvirt plugin
vagrant plugin install vagrant-libvirt
  • Edit Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.define :test_vm do |test_vm|
    test_vm.vm.box = "centos64"
    test_vm.vm.network :private_network, :ip => '10.20.30.40'
  end

  config.vm.provider :libvirt do |libvirt|
    libvirt.driver = "qemu"
    libvirt.host = "localhost"
    libvirt.connect_via_ssh = true
    libvirt.username = "root"
    libvirt.storage_pool_name = "default"
  end
end
  • To start it
vagrant up --provider=libvirt
  • Make libvirt default
export VAGRANT_DEFAULT_PROVIDER=libvirt