From 4d7f1e7c88c5cb50a3367470b107e7fc600ef0a1 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 31 Oct 2017 11:06:18 -0700 Subject: [PATCH] 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. --- Vagrantfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 3e8a576e27..59911837b4 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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|