From 359646885afdf8c962f8d11c1bfc749eb3097051 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 6 Mar 2015 14:00:50 +0100 Subject: [PATCH] Only use NFS on non-Windows machines. --- Vagrantfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index f283995..aa8d695 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -98,12 +98,16 @@ Vagrant.configure("2") do |config| # Create a static IP config.vm.network :private_network, ip: server_ip + + # We can use NFS if we're not running on Windows + share_opts = { :id => "core" } + unless Vagrant::Util::Platform.windows? + share_opts[:nfs] = true + share_opts[:mount_options] = ['nolock,vers=3,udp,noatime,actimeo=1'] + end - # Use NFS for the shared folder - config.vm.synced_folder ".", "/vagrant", - id: "core", - :nfs => true, - :mount_options => ['nolock,vers=3,udp,noatime,actimeo=1'] + # Configure the shared folder + config.vm.synced_folder ".", "/vagrant", share_opts # If using VirtualBox config.vm.provider :virtualbox do |vb|