Vagrant: Ubuntu 16.04 - vagrant still hangs on mounting nfs shares

Created on 6 Jan 2017  ยท  6Comments  ยท  Source: hashicorp/vagrant

Freshly installed Ubuntu 16.04 - new Virtualbox 5.1.12 from their repos - vagrant still hangs on mounting nfs shares. yes, I tried the bento box, no difference. Sometimes it works on the first time, but usually it hangs. nfs-kernel-server is installed, of course, and runs and has no problems with real boxes. No fun.

Stderr from the command:

mesg: ttyname failed: Inappropriate ioctl for device
mount.nfs: Connection timed out
bug synced-foldernfs

Most helpful comment

For me, I needed to make sure my host interface was up so my Host had an IP on the virtualbox's network

Solution:

$ sudo ip a add 192.168.33.1/255.255.255.0 dev vboxnet0
$ sudo ip link set vboxnet0 up

All 6 comments

Do you have Ubuntu Livepatch setup on that box?
I have had the same issue, and had to remove livepatch to get Vagrant to mount NFS shares.
Initial attempts with Vagrant v1.9.1 are looking better than v1.9.0

I also seem to remember that I found restarting 'rpcbind' before starting a VM seemed to help, but that may have been the late time of the day that I was attempting to diagnose this.

ok, an upgrade to Vagrant v1.9.1 didn't help. it seems that restarting rpcbind was the fix for me.

For me, I needed to make sure my host interface was up so my Host had an IP on the virtualbox's network

Solution:

$ sudo ip a add 192.168.33.1/255.255.255.0 dev vboxnet0
$ sudo ip link set vboxnet0 up

Hi there,

Thanks for reporting this bug. I'm sure this was a real issue when originally reported (our fault for not looking sooner!) but there have been multiple Vagrant releases since the original report. I'm going to close this issue now and request you reopen the issue if you're still experiencing this problem. I'm sorry this wasn't looked at earlier :frowning_face:

Cheers!

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rrzaripov picture rrzaripov  ยท  3Comments

mpontillo picture mpontillo  ยท  3Comments

RobertSwirsky picture RobertSwirsky  ยท  3Comments

OtezVikentiy picture OtezVikentiy  ยท  3Comments

bbaassssiiee picture bbaassssiiee  ยท  3Comments