Vagrant plugin to allow the guest to export a mount and the host to mount it.
disabled
flag on shares now are properly respectedchown
.up
, halt
, destroy
, suspend
, resume
and package
properly.Allows a guest VM to export synced folders via NFS and the host to mount them.
Basically it's just the usual NFS synced folders in Vagrant but the roles are reversed.
Guest VMs we've tested include:
Hosts we've tested include:
We're happy to receive pull-request to support alternatives hosts and guests. To implement this support it's relatively trivial if you look in ./lib/hosts and ./lib/guests.
vagrant plugin install vagrant-nfs_guest
git clone https://github.com/Learnosity/vagrant-nfs_guest.git
cd vagrant-nfs_guest
bundle install
bundle exec rake build
vagrant plugin install pkg/vagrant-nfs_guest-VERSION.gem
To enable for example put similar in the Vagrantfile:
config.vm.synced_folder 'srv', '/srv', type: 'nfs_guest'
We use 'chruby' to allow a virtual ruby environment for developement. The 'bundle' gem is needed to build and run
git clone https://github.com/Learnosity/vagrant-nfs_guest.git
cd vagrant-nfs_guest
bundle install
bundle exec vagrant
You can test your handy work using the example_box
by doing the following:
cd ./example_box/
bundle exec vagrant up
You can ssh into the test VM using:
bundle exec vagrant ssh
... and you can clean up with:
bundle exec vagrant destroy
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)