Vagrant now attempts to mount NFS on both Linux and Darwin. Updated documentation accordingly.

This commit is contained in:
Martin Potthast 2013-02-22 16:43:56 +01:00
parent 4d99dc035e
commit ac64be720e
2 changed files with 12 additions and 1 deletions

3
Vagrantfile vendored
View File

@ -25,7 +25,8 @@ Vagrant::Config.run do |config|
config.vm.forward_port 3000, 4000
config.vm.forward_port 1080, 4080 # Mailcatcher
nfs_setting = RUBY_PLATFORM =~ /darwin/ ? true : false
nfs_setting = (RUBY_PLATFORM =~ /darwin/ or
RUBY_PLATFORM =~ /linux/) ? true : false
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => nfs_setting)
chef_cookbooks_path = ["chef/cookbooks"]

View File

@ -26,6 +26,16 @@ Vagrant will prompt you for your admin password. This is so it can mount your lo
(The first time you do this, it will take a while as it downloads the VM image and installs it. Go grab a coffee.)
**Note to OSX/Linux users**: Vagrant will mount your local files via an NFS share. Therefore, make sure that NFS is installed or else you'll receive the error message:
```
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.
```
Once the machine has booted up, you can shell into it by typing:
```