-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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.nfs: access denied by server while mounting #5424
Comments
I am experiencing something similar: Nevermind me writing about stdin being the problem, I think the real issue comes from the mount.nfs access denied error. |
Related issue here... VM again has two
Whilst vagrant attempts to have the guest mount the folder using the host's reachable address (i.e. that on the former network), it configures
I tried reordering the configuration of the VM's interfaces within the Interfaces connected to networks unreachable from the host (such as VirtualBox internal networks) should obviously be excluded from the pool of potential interfaces considered for |
I have experienced this too using 1.7.4 (latest). It seems Vagrant misguesses the correct IP when writing to
This is far from ideal because my host's |
i experiencing the same issue on a vmware osx guest with multiple interfaces. ifconfig: (interfaces ordered in appearance) /etc/exports: what do you mean about introducing a new configuration option in Vagrantfile which would instruct vagrant to use a specific ip address in /etc/exports? |
after some forced experiments, i think one fix could be to use the ip address of the enX interface with the smallest X number in the /etc/exports file.
|
I believe I am experiencing this (or some variant of it) as well on VMs with 3 NICs configured as follows:
Vagrant will only put the address of Adapter 2 in the This issue disappears if Adapter 3 is configured with a static IP address. In this case Vagrant populates Vagrant version: 1.8.1 |
Did someone find a solution to that problem? I'm still having it with Vagrant 1.8.5 and the Vagrant file there: https://github.com/b9lab/truffle-vagrant-env/blob/master/Vagrantfile |
Still happening on latest Vagrant 1.9.1 :( |
See related: #8138 |
Indeed, I've lost too much time trying to get NFS mounts working on my setup, which is: I got help from the mastermind behind WunderTools, and as said in it's readme, downgrading to Vagrant 1.9.0 finally solved the mounting issue. Phew! |
Started on a new vagrant project and upgraded to Vagrant 1.9.1, suddenly seeing this weird problem on a Oracle Enterprise Linux 7 (aka Red Hat Enterprise) |
Same issue here - vagrant picks up docker0 interface ip and sets up /etc/fstab with the wrong address. |
Hi there, It looks like this has been resolved within a previously shipped version of Vagrant so I am now closing this issue. If the original issue was not fully resolved, please reopen this issue or create a new one. Cheers! |
@chrisroberts: So the official solution to this problem is "downgrade to a previous version"? There's no intention to roll back whatever change caused this problem so that it is resolved in future versions? |
@chrisroberts, @eggyal From the thread and personal experience, it appears that version 1.9.1 introduced a regression. However, upgrading to version 1.9.2 appears to have resolved this issue. |
For me, nothing here and in the other related issues works in my Mac OS Sierra except clean the entries in the file /var/db/mountdexptab In my case before solved the problem (when stuck with the access denied message):
Later when is fixed (wow!):
Just delete the extra lines of mounting points! Enjoy bitches!!! 💃 |
I also confirm that upgrading to 1.9.2 fixes the issue for me. |
Tried everything as but nothing worked . Just upgraded the version from Vagrant 1.7.4 to Vagrant 1.9.3 and its working fine now without having any issue. |
I had a similar problem in Ubuntu, Vagrant version 1.9.3, VB version 5.1.22 The problem was that my host's OS has changed the I had to run:
There were many other things I tried: starting/stopping the firewall (ufw, iptables, both, neither); adding specific rules to the firewall to allow all traffic to this IP; It wasn't until I made sure my vboxnet0 had an IP on the host machine that everything worked. |
This is happening for me on Vagrant 1.9.5, OSX 10.12. I've tried downgrading to 1.9.3, still the same problem. Basically the nfs export routine picks the wrong IP second time through. Here are my /etc/exports for the first vagrant up and then the second.
You can see that second time it picks the wrong IP (its the IP of my docker network inside the VM) and NFS won't mount. Something must be deeply flawed in the logic for this to occur. It's 100% reproducible. Inside the VM:
Same thing with 1.8.7. |
I could fix this problem with solution posted here https://www.comoinstalarlinux.com/error-en-vagrant-al-montar-directorio-compartido-con-nfs/ Modify Vagrantfile with synced directory to add NFS 4 and does not use UDP. Works fine and could mount NFS on Vagrant VM with out problem. |
I don't think the problem is the NFS version - have a look at the OP, this is about Vagrant picking the wrong network interface. There were other issues like the one you reference but I believe those were fixed in later versions of Vagrant. |
+1 not fixed |
Confirmed the issue still exists on 1.8.1 version with the same error. If the version of NFS would be switched from 3 to 4, the provision/up progress is hanging there without an extra error message. |
Actually my issue was related to ecryptfs. My home folder in Ubuntu 17.04 is encrypted and nfs doesn't support shares on ecryptfs. |
not fixed in windows using vagrant-winnfsd |
@inakrin might I ask how you fixed it? I am currently experiencing the same issue and also run an encrypted home folder. |
same issue, vagrant 1.9.5, macOS 10.13.3. And just like he noted, my machine uses docker as well. For the time being, my fun solution is to uninstall docker before re-provisioning.
|
I spend half a day today debugging it and found what was the problem. I hope it will help some of you. My config:
(so everything up to date) The problemThe IP address in Why is it happening?VMware Fusion runs internal DHCP server which provides IP address for each VM, It seems that Vagrant does not have any problems figuring out the IP address of the guest VM when it comes to SSH access. I found that in my SolutionStop all VMs, exit VMware Fusion, and clear |
Had the same problem having the vagrant-directory inside my via ecryptfs encrypted home. |
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. |
Mounting shared folders fails due to Vagrant putting the wrong IP address in the
/etc/exports
file when there are multiple interfaces using the 172.16.0.0/12 IP address space inside the virtual machine. This can reliably be reproduced with theVagrantfile
and steps shown below:vagrant up
vagrant up
and observe the NFS mount error as shown below:Notice that Vagrant has incorrectly picked up the IP address of the "docker0" network interface (instead of the IP address of its own private network interface) and put it in
/etc/exports
!Rebooting the virtual machine (without rebooting the host) after the initial NFS mount error often does not reproduce it. However, sometimes it does. But rebooting the host itself reliably reproduces the NFS mount error.
The text was updated successfully, but these errors were encountered: