Skip to content

Instantly share code, notes, and snippets.

@ironcladlou
Last active February 24, 2016 17:52
Show Gist options
  • Save ironcladlou/38f229462e107942a1ee to your computer and use it in GitHub Desktop.
Save ironcladlou/38f229462e107942a1ee to your computer and use it in GitHub Desktop.
Speedy NFS shares
config.vm.synced_folder ".", "/nfs/vagrant", type: "nfs"
config.bindfs.bind_folder "/nfs/vagrant", "/vagrant", :owner => "1000", :group => "1000", :perms => 'u=u:g=g:o=o', :'create-as-user' => true
config.vm.synced_folder "#{ENV['GOPATH']}/src", "/nfs/src", type: "nfs", mount_options: [
'vers=3',
'rw',
'tcp',
'fsc',
'intr',
'rsize=1048576',
'wsize=1048576'
]
config.bindfs.bind_folder "/nfs/src", "/home/vagrant/go/src", :owner => "1000", :group => "1000", :perms => "u=u:g=g:o=o", :'create-as-user' => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment