Last active
August 29, 2015 14:06
-
-
Save kaystrobach/aa4d2be3dc11a0a500e9 to your computer and use it in GitHub Desktop.
Vagrantfile for NFS Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
print "You may be asked for your sudo password to use NFS shares\n" | |
print "More Information: https://docs.vagrantup.com/v2/synced-folders/nfs.html\n\n" | |
unless Vagrant.has_plugin?("vagrant-vbguest") | |
print "please execute the following command to enable automated vbguest installation\n\n" | |
print "vagrant plugin install vagrant-vbguest" | |
exit | |
end | |
unless ((/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) == nil) | |
print "detected, that you run vagrant on windows ...\n" | |
unless Vagrant.has_plugin?("vagrant-winnfsd") | |
print "please execute the following command to enable nfs support in windows\n\n" | |
print "vagrant plugin install vagrant-winnfsd" | |
exit | |
end | |
end | |
Vagrant.configure("2") do |config| | |
... | |
config.vm.synced_folder ".", "/serverdata", type: "nfs" | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment