Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow guest path to be omitted from NFS share #4578

Closed
staticshock opened this issue Oct 1, 2014 · 2 comments
Closed

Allow guest path to be omitted from NFS share #4578

staticshock opened this issue Oct 1, 2014 · 2 comments

Comments

@staticshock
Copy link

I saw it mentioned in #936 that omitting the guest path prevents the auto-mount. I would like that behavior to be available to NFS shares. My use-case is Windows guests, where a normal NFS mount fails with this error:

Vagrant attempted to execute the capability 'mount_nfs_folder' on the detect guest OS 'windows', but the guest doesn't support that capability.

I have a work-around for mounting the drive myself, if vagrant just gave up the auto-mount attempt. Omitting the guest path, however results in this error:

vm:

  • The shared folder guest path must be absolute: {:type=>"nfs"}

So, my VM initialization process is pretty bad: (1) comment out the NFS synced_folders from Vagrantfile, (2) vagrant up in order to get non-NFS folders mounted and to provision (3) uncomment NFS synced_folders (4) vagrant reload to create the NFS shares, after which vagrant fails due to the capability error.

@mitchellh
Copy link
Contributor

You can explicitly set auto_mount: false. Err try mount_auto: false as well. I can't remember off the top of my head. We decided to go this route instead of the implcit not mounting.

@staticshock
Copy link
Author

Thanks, good to know.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants