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

glennpratt’s picture

Status: Active » Needs review

I 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...

MrMaksimize’s picture

Tried 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.

glennpratt’s picture

Huh, mwatters was able to get past the error after sudo apt-get install nfs-common on guest, then vagrant halt; vagrant up.

glennpratt’s picture

Status: Needs review » Needs work
christianchristensen’s picture

Looks like there is some additional info on the project mailing list: http://groups.google.com/group/vagrant-up/browse_thread/thread/f8cff21fb... (seems related)

glennpratt’s picture

I think that is for the Host-only networking issue on Windows. Chris V had that issue...

mitchellh’s picture

Hi 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

glennpratt’s picture

Hi 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.

mwatters’s picture

Status: Needs work » Closed (fixed)

This 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.