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

Problems on Ubuntu 22 #143

Open
DannyBen opened this issue Apr 24, 2023 · 7 comments
Open

Problems on Ubuntu 22 #143

DannyBen opened this issue Apr 24, 2023 · 7 comments

Comments

@DannyBen
Copy link

I seem to be stuck in an endless error loop.

My setup used to work without a problem on Ubuntu 20, but now it fails on Ubuntu 22 (Ubuntu vagrant guest on Windows 11 host).

My Vagrantfile config:

    nfs_options = %w[rw async fsc nolock vers=3 udp rsize=32768 wsize=32768 hard noatime actimeo=2]
    config.vm.synced_folder './', "/vagrant", type: 'nfs', mount_options: nfs_options
    config.vm.network "private_network", type: "dhcp"

With this, it seems like the plugin adds vers=3,udp again, so when running vagrant up, this error occurs:

==> 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 vers=3,udp,rw,async,fsc,nolock,vers=3,udp,rsize=32768,wsize=32768,hard,noatime,actimeo=2 192.168.56.1:/C/D/Vagrant/Main /vagrant

Stderr from the command:
mount.nfs: multiple version options not permitted

Note the command was prepended with ver=3 and udp again.

  • If I remove my ver=3 udp from my options, it fails with another error (mount.nfs: an incorrect mount option was specified)
  • If I run the command from within SSH, but without udp, it mounts properly
  • If I just remove the udp from my options, it still fails.

I think that there is some broken logic that adds these options when it shouldn't.

@bpystep
Copy link

bpystep commented Jul 17, 2023

Same problem

@bpystep
Copy link

bpystep commented Jul 17, 2023

@DannyBen Have you solved this problem?

@DannyBen
Copy link
Author

@DannyBen Have you solved this problem?

Yes. I have reverted to Ubuntu 20.... :)
The quality of the "Vagrant on Windows for running Linux" solution is degrading consistently. Sooner or later, we will have to face the music.

@sawwd
Copy link

sawwd commented Oct 25, 2023

I have the same issue. Pretty sure the issue is not too hard to fix...

@chan15
Copy link

chan15 commented Feb 19, 2024

It's happened on almalinix/9 too, hope author can solve the problem please

@chan15
Copy link

chan15 commented Feb 20, 2024

config.vm.synced_folder "./data", "/data", type: "nfs", mount_options: ['nolock'], nfs_udp: false

@DannyBen This is my solution on Ubuntu22, still work on Almalinux/9

@DannyBen
Copy link
Author

config.vm.synced_folder "./data", "/data", type: "nfs", mount_options: ['nolock'], nfs_udp: false

@DannyBen This is my solution on Ubuntu22, still work on Almalinux/9

If I recall correctly, when not using UDP the performance is unacceptable.
I since moved to Arch linux without NFS.

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