winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
567 stars 62 forks source link

vagrant up from subdirectory fails to mount synced folder #24

Open hxu opened 9 years ago

hxu commented 9 years ago

My folder structure looks like this:

C:\vagrant_folder
  - subfolder\
  - Vagrantfile

Running vagrant up from C:\vagrant_folder\subfolder will bring up the box correctly, but the shared folder doesn't mount:

==> dev: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.  Vagrant assumes that this means the command failed!

mount -o 'vers=3,udp,nolock' 192.168.221.1:'/C/vagrant_folder' /vagrant

Stdout from the command:

Stderr from the command:

stdin: is not a tty
mount.nfs: mount to NFS server '192.168.221.1:/C/vagrant_folder' failed: timed out, giving up

The line in the Vagrantfile defines the share as:

dev.vm.synced_folder ".", "/vagrant", type: "nfs"

Running from the folder with the Vagrantfile works without a problem.