Browse Source

Revert back to using NFS on Windows, too (encouraging the use of a plugin).

pull/6/head
Franz Liedke 10 years ago
parent
commit
165bb7ef01
  1. 18
      Vagrantfile

18
Vagrantfile vendored

@ -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|

Loading…
Cancel
Save