Skip to content

Instantly share code, notes, and snippets.

@redgeoff
Last active December 18, 2015 15:29
Show Gist options
  • Save redgeoff/65218345647b0bc41686 to your computer and use it in GitHub Desktop.
Save redgeoff/65218345647b0bc41686 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
# Use a private network so that we don't have to worry about forwarding ports
config.vm.network "private_network", ip: "192.168.10.10"
config.vm.provider "virtualbox" do |v|
# Default of 512 MB is too little for an `npm install`
v.memory = 1024
# Only allow drift of 1 sec, instead of 20 min default
v.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000 ]
end
# Bootstrap script for configuring VM
config.vm.provision :shell, path: "bootstrap.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment