Last active
August 29, 2015 14:24
-
-
Save udomsak/5ddb593df65b9e282510 to your computer and use it in GitHub Desktop.
Vagrantfile for vagrant libvirt driver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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