Skip to content

Instantly share code, notes, and snippets.

@hxu
Created August 13, 2014 15:07
Show Gist options
  • Save hxu/8f43a517d5c6d53a6e6f to your computer and use it in GitHub Desktop.
Save hxu/8f43a517d5c6d53a6e6f to your computer and use it in GitHub Desktop.
Ubuntu 64 Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
require 'rbconfig'
is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provider "virtualbox" do |v|
v.memory = 3072
v.cpus = 2
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provision "shell" do |sh|
sh.path = "provision.sh"
end
#
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment