From 165bb7ef01f445b1c825160ce279761b815ff8ef Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sun, 8 Mar 2015 02:00:59 +0100 Subject: [PATCH] Revert back to using NFS on Windows, too (encouraging the use of a plugin). --- Vagrantfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index c6b322b..70b29a2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -96,16 +96,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 - # Configure the shared folder - config.vm.synced_folder ".", "/vagrant", share_opts + # A private dhcp network is required for NFS to work (on Windows hosts, at least) + # Windows users should use the winnfsd plugin: https://github.com/GM-Alex/vagrant-winnfsd + config.vm.network :private_network, type: "dhcp" + + # Use NFS for the shared folder + config.vm.synced_folder ".", "/vagrant", + id: "core", + :nfs => true, + :mount_options => ['nolock,vers=3,udp,noatime,actimeo=1'] # If using VirtualBox config.vm.provider :virtualbox do |vb|