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

Add provider_capability for NFS #6781

Closed
Temikus opened this issue Jan 3, 2016 · 3 comments
Closed

Add provider_capability for NFS #6781

Temikus opened this issue Jan 3, 2016 · 3 comments
Labels
Milestone

Comments

@Temikus
Copy link

Temikus commented Jan 3, 2016

TL;DR:

  • Sometimes NFS isn't feasible nor needed (for example cloud providers).
  • SyncedFolders always tries to set it up if host and remote machine support it.
  • However, port forwarding is usually not supported, so the provisioning will fail.
  • There are workarounds but can we have something proper like provider_capability implemented for NFS so providers can set whether nfs can be used with them?

In some cloud providers NFS is not supported nor needed and all syncing is done through Rsync.
However, the current Vagrant SyncedFolders implementation will try to set up NFS and while the local and remote system may be capable of it, the ports will not be forwarded correctly for it to work, so the provisioning will fail.

This can be worked around by setting an override entirely:

config.nfs.functional = false

, or setting the folder type explicitly:

congif.vm.synced_folder ".", "/vagrant",type: "rsync"

However, those are workarounds and need to be specifically set up, which makes people run into issues, for example (there are many more):

P.S. This idea was also proposed by @legal90 earlier in #4011

@chrisroberts
Copy link
Member

Hi there,

We would really like this, but this issue has been open for almost a year with no one working on it, Leaving it open is unfortunately making our issue count look higher than it is. I’m going to close this and if someone wants to work on it I’d still be open to a PR!

Cheers!

@Temikus
Copy link
Author

Temikus commented Mar 23, 2018

For posterity sake, I'll note that adding:

@machine.config.nfs.functional = false
@machine.config.smb.functional = false

in provider.rb, does the equivalent of what I require.

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

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

No branches or pull requests

3 participants