- Clone this repo
- Make sure you have Vagrant and Virtual Box installed
- Navigate to this repo in your terminal and run
vagrant up nfs
- Wait for it to come up and run
vagrant up app1
- Wait for it to come up and run
vagrant up app2
- SSH into app1 via
vagrant ssh app1
- Navigate into
/mnt/shared
in app1 - Crate any test file using your favorit text editor
- Exit and ssh into app2 via
vagrant ssh app2
- Navigate to
/mnt/shared
and you should see your file there - Exit and ssh into the NFS server via
vagrant ssh nfs
- Navigate to
/home/vagrant/shared
and confirm that your file is visible there as well.
There you have it, working NFS setup