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

mount fails on recent Ubuntu versions (Ubuntu 21.04) #138

Open
pbowyer opened this issue Jul 20, 2021 · 3 comments
Open

mount fails on recent Ubuntu versions (Ubuntu 21.04) #138

pbowyer opened this issue Jul 20, 2021 · 3 comments

Comments

@pbowyer
Copy link

pbowyer commented Jul 20, 2021

I've used vagrant-winnfsd for years and it's brilliant. Thank you 😍

It works perfectly with my Ubuntu 18.04 guests. Today I tried setting up an Ubuntu 21.04 machine. No matter what mount_options I set or omitted, it failed with:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3,udp,vers=3 192.168.33.1:/D/projects/example /vagrant

Stdout from the command:



Stderr from the command:

mount.nfs: an incorrect mount option was specified

The config line I started with was:

  config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: %w{rw,async,fsc,nolock,vers=3,udp,rsize=32768,wsize=32768,hard,noatime,actimeo=2}

When I reverted to Ubuntu 18.04 it worked.

@rmruano
Copy link

rmruano commented Aug 25, 2021

I've managed to solve it by switching to TCP protocol proto=tcp
Anyway, the use of UDP is discouraged: https://manpages.ubuntu.com/manpages/bionic/man5/nfs.5.html#transport%20methods

@dokuhebi
Copy link

I realize it's a year and half later, but I'm getting the same error. I'm not sure how the solution provided by @rmruano is relevant to the plugin.

@sawwd
Copy link

sawwd commented Oct 25, 2023

I have the same issue on Ubuntu 22.04. Any working solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants