Closed (fixed)
Project:
Vagrant
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2011 at 16:05 UTC
Updated:
7 Jun 2011 at 14:54 UTC
Brief: You have to install nfs-common in the virtual box instance to get NFS mounting to work with "vagrant up".
Full: When running "vagrant up" I get the following error: "Mounting NFS shared folders failed. This is most often caused by the NFS client software not being installed on the guest machine. Please verify that the NFS client software is properly installed, and consult any resources specific to the linux distro you're using for more information on how to do this."
I have to ssh into the virtual box instance, and run: "sudo apt-get install nfs-common". After that I exit out, halt vagrant, and rerun "vagrant up" again to get NFS to mount.
Comments
Comment #1
glennpratt commentedI committed a quick fix, let me know if this helps.
If it does, we should probably add an NFS recipe since nfs-common probably isn't the right package name on all platforms.
http://drupalcode.org/project/vagrant.git/commitdiff/962ca50bbd06402a0ce...
Comment #2
MrMaksimize commentedTried to re-run a clean install, doesn't look like the fix helped. getting same error, both after the fix and after installing nfs-common on vagrant.
Comment #3
glennpratt commentedHuh, mwatters was able to get past the error after sudo apt-get install nfs-common on guest, then vagrant halt; vagrant up.
Comment #4
glennpratt commentedComment #5
christianchristensen commentedLooks like there is some additional info on the project mailing list: http://groups.google.com/group/vagrant-up/browse_thread/thread/f8cff21fb... (seems related)
Comment #6
glennpratt commentedI think that is for the Host-only networking issue on Windows. Chris V had that issue...
Comment #7
mitchellh commentedHi folks,
Vagrant creator here :) I'm not sure what base box you're using, but the "lucid32.box" and "lucid64.box" (official Ubuntu 10.04 boxes I host) both have nfs-common preinstalled.
Unfortunately placing "nfs-common" in the Chef packages is not enough, since Vagrant will mount shared folders prior to running Chef, so NFS must exist in the base box itself, for now.
I hope this helps!
Best,
Mitchell
Comment #8
glennpratt commentedHi Mitchell,
Thanks for commenting!
We are suggesting the lucid base box.
I'll try to get with someone having this problem and do some research.
Comment #9
mwatters commentedThis problem appears to be fixed. Perhaps changes to the lucid box? At any rate, I was able to start over from scratch and get things up and running without a problem. Others who had the same problem are reporting success too.