Normally I am happy with the 'default' folder sharing line for Vagrant, where /vagrant in the guest box maps to your working directory.
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)
However, in this particular case, I'm trying to create one VM for multiple repositories, so I'm trying to map a folder of the guest to another folder which isn't the working directory (.)
config.vm.share_folder("v-repos", "/projects", "~/Projects/", :nfs => true)
I've tried to map to '../' and varieties, and to absolute paths '/Users/dietervds/', and others, but I always receive the error:
[default] Mounting NFS shared folders... Mounting NFS shared folders failed. This is most often caused by the NFS client software not being installed on the guest machine. Please verify that the NFS client software is properly installed, and consult any resources specific to the linux distro you're using for more information on how to do this.
However, since NFS works just fine for the default line, it must be something else.
Does anyone have any idea?
Thanks in advance,
Dieter