set default values for mem & cpus to remove error for vagrant up on Windows

This commit is contained in:
Alexander Brevig 2015-12-01 08:10:21 +01:00
parent 7b088b6ba5
commit f07d8a03fa

3
Vagrantfile vendored
View File

@ -19,6 +19,9 @@ Vagrant.configure(2) do |config|
## VIRTUALBOX ##
config.vm.provider "virtualbox" do |v|
# Give some pessimistic default values, fix errors on Windows
mem = 512
cpus = 2
# Give VM 1/4 system memory & access to all cpu cores on the host
if host =~ /darwin/
cpus = `sysctl -n hw.ncpu`.to_i