Skip to content

Instantly share code, notes, and snippets.

@udomsak
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udomsak/5ddb593df65b9e282510 to your computer and use it in GitHub Desktop.
Save udomsak/5ddb593df65b9e282510 to your computer and use it in GitHub Desktop.
Vagrantfile for vagrant libvirt driver
# Do vagrant add ubuntu/vivid64 ( Ubuntu 15.04 )
# Do vagrant init base environment
vagrant box add ubuntu/vivid64
vagrant init ubuntu/vivid64 Ubuntu-KVM-Vagrant
cd Ubuntu-KVM-Vagrant
#Edit Vagrantfile refer to vagrantfile-libvirt-kvm
vagrant up
vagrant ssh
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/vivid64"
config.vm.box_url = "."
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.provider "libvirt" do |libvirt|
libvirt.driver = "kvm"
libvirt.memory = 512
libvirt.cpus = 2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment