diff --git a/CHANGELOG.md b/CHANGELOG.md index 49ef901aa..ec3569879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ IMPROVEMENTS: - If Ansible fails to run properly, show an error message. [GH-1699] - Adding a box with the `--provider` flag will now allow a box for any of that provider's supported formats. + - NFS mounts enable UDP by default, resulting in higher performance. + (Because mount is over local network, packet loss is not an issue) + [GH-1706] BUG FIXES: diff --git a/plugins/guests/linux/cap/mount_nfs.rb b/plugins/guests/linux/cap/mount_nfs.rb index fee372e82..1abee3bdf 100644 --- a/plugins/guests/linux/cap/mount_nfs.rb +++ b/plugins/guests/linux/cap/mount_nfs.rb @@ -18,7 +18,7 @@ module VagrantPlugins # Mount hostpath = opts[:hostpath].dup hostpath.gsub!("'", "'\\\\''") - mount_command = "mount -o vers=#{opts[:nfs_version]} #{ip}:'#{hostpath}' #{expanded_guest_path}" + mount_command = "mount -o udp,vers=#{opts[:nfs_version]} #{ip}:'#{hostpath}' #{expanded_guest_path}" retryable(:on => Vagrant::Errors::LinuxNFSMountFailed, :tries => 5, :sleep => 2) do machine.communicate.sudo(mount_command,