Vagrant now attempts to mount NFS on both Linux and Darwin. Updated documentation accordingly.
This commit is contained in:
parent
4d99dc035e
commit
ac64be720e
|
@ -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"]
|
||||
|
|
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue