diff --git a/lib/vagrant/action/vm/nfs.rb b/lib/vagrant/action/vm/nfs.rb index fb1abb78a..d888a836c 100644 --- a/lib/vagrant/action/vm/nfs.rb +++ b/lib/vagrant/action/vm/nfs.rb @@ -91,7 +91,7 @@ module Vagrant key, opts = data opts[:map_uid] = prepare_permission(:uid, opts) opts[:map_gid] = prepare_permission(:gid, opts) - opts[:version] ||= 3 + opts[:nfs_version] ||= 3 acc[key] = opts acc diff --git a/lib/vagrant/guest/linux.rb b/lib/vagrant/guest/linux.rb index 36096a09e..a0dd0b7c1 100644 --- a/lib/vagrant/guest/linux.rb +++ b/lib/vagrant/guest/linux.rb @@ -60,7 +60,7 @@ module Vagrant # Do the actual creating and mounting @vm.channel.sudo("mkdir -p #{real_guestpath}") - @vm.channel.sudo("mount -o vers=#{opts[:version]} #{ip}:'#{opts[:hostpath]}' #{real_guestpath}", + @vm.channel.sudo("mount -o vers=#{opts[:nfs_version]} #{ip}:'#{opts[:hostpath]}' #{real_guestpath}", :error_class => LinuxError, :error_key => :mount_nfs_fail) end