vagrant: Switch Virtualbox to use NFS for syncing files.

This seems to help with frequent virtualbox guest crashes that we've
been having on Macs recently.

Thanks to Umair Khan for figuring this out.
This commit is contained in:
Tim Abbott 2017-10-31 11:06:18 -07:00
parent d6df408a0e
commit 4d7f1e7c88
1 changed files with 2 additions and 1 deletions

3
Vagrantfile vendored
View File

@ -30,7 +30,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
host_ip_addr = "127.0.0.1"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/srv/zulip"
vagrant_config_file = ENV['HOME'] + "/.zulip-vagrant-config"
if File.file?(vagrant_config_file)
@ -81,6 +80,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
lxc.backingstore = 'dir'
end
end
config.vm.synced_folder ".", "/srv/zulip"
end
config.vm.provider "virtualbox" do |vb, override|
@ -88,6 +88,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# It's possible we can get away with just 1.5GB; more testing needed
vb.memory = 2048
vb.cpus = 2
config.vm.synced_folder ".", "/srv/zulip", type: "nfs"
end
config.vm.provider "vmware_fusion" do |vb, override|