Thursday, October 1, 2015
speeding up vagrant and virtualbox synced folder on mac and windows
first, use nfs for sync folder,
web.vm.synced_folder "/private/var/www", "/var/www", type: "nfs", mount_options: ['rw', 'vers=3', 'tcp', 'fsc', 'actimeo=2']
actimeo=2 # increases speed of file sync
then do a:
web.vm.synced_folder "c:/wamp/www", "/var/www", type: "smb"
Notes: nfs on windows is not fully compatible. On linux guest machine, it does not allow file locking. This isn't good enough with rails, especially. Smb is an good option with file locking support, and fast response time. But this requires running command prompt as administrator to start smb command.
Hope it helps ;)