Vagrant.configure("2")do|config|config.vm.box='debian/jessie64'# Make this VM reachable on the host network as well, so that other# VM's running other browsers can access our dev server.config.vm.network:private_network,ip: "192.168.10.200"# Make it so that network access from the vagrant guest is able to# use SSH private keys that are present on the host without copying# them into the VM.config.ssh.forward_agent=trueconfig.vm.provider:virtualboxdo|v|v.customize["modifyvm",:id,"--memory",4096]cpu_count=2# Determine the available cores in host system.# This mostly helps on linux, but it couldn't hurt on MacOSX.ifRUBY_PLATFORM=~/linux/cpu_count=`nproc`.to_ielsifRUBY_PLATFORM=~/darwin/cpu_count=`sysctl -n hw.ncpu`.to_iend# Assign additional cores to the guest OS.v.customize["modifyvm",:id,"--cpus",cpu_count]v.customize["modifyvm",:id,"--ioapic","on"]# This setting makes it so that network access from inside the vagrant guest# is able to resolve DNS using the hosts VPN connection.v.customize["modifyvm",:id,"--natdnshostresolver1","on"]endnfs_setting=RUBY_PLATFORM=~/darwin/||RUBY_PLATFORM=~/linux/config.vm.synced_folder"../..","/gpdb",type: "nfs"config.vm.provision"shell",path: "vagrant-setup.sh"#config.vm.provision "shell", path: "vagrant-build.sh"end