winnfsd / vagrant-winnfsd

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

Is possible to share folder inside Guest and serve to the Host? #54

Open Jero786 opened 9 years ago

Jero786 commented 9 years ago

Exist any way to share folder inside of Guest, and serve this shared folder to the Host? in order to avoid the performance issue of windows? or is the same? some people call it as a reverse synced folder.

I have a very slow of sync (15~ seg) with the host folder to sync with Guest.

Other think that I tray to do that, in order to resolve the very slow sync was play with mount_options: ['actimeo=1'] parameter, but when I use them, It throw a following exception:

...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit nfs mounting file.
[NFS] Status: running
==> default: 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 'actimeo=1' 192.168.1.1:'/C/my_host_folder' /my_guest_folder
Stdout from the command:

Stderr from the command:
stdin: is not a tty
mount.nfs: mount system call failed

My Vagrantfile is

...
config.vm.synced_folder ".", "/my_guest_folder", type: "nfs"  #, mount_options: ['actimeo=1']
config.vm.network :private_network, ip: "192.168.1.0", type: "dhcp"
...

Thanks!