Needs work
Project:
Drush Vagrant Integration
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2012 at 19:34 UTC
Updated:
10 Feb 2014 at 21:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ergonlogicThis pull request would add the ability to specify arbitrary NFS options: https://github.com/mitchellh/vagrant/pull/1029
Comment #2
ergonlogicNote that NFS is unnecessary on Windows, so we can do this in our Vagrantfile: https://github.com/myplanetdigital/ariadne/blob/master/Vagrantfile#L54
Comment #3
franskuipers commentedWe are already supporting NFS. I have tried it, and it works fine on a linux host. I am not sure if the nfs-options are working, don't know the different NFS options and their effects.
To prevent NFS mounting on windows, we could add the patch to our Vagrant file.
Comment #4
ergonlogicRight, NFS works, but is limited. Try changing ownership of a file in an NFS-mounted dir, and it'll fail, for example.
There is progress in https://github.com/mitchellh/vagrant/pull/1029#issuecomment-9057074, however, as mitchellh likes the idea, and will likely merge it in the coming weeks. So, it should work its way into released versions of Vagrant by EOY, hopefully.
Anyway, we can support such arbitrary NFS options by pushing that into settings.rb, as I've done here: http://drupalcode.org/project/drush-vagrant.git/blobdiff/e00f87db39139ef...
Basically, we're deprecating NFS_shares, and adding Dir_shares to support arbitrary directory shares, and supports NFS.
I'd prefer to special-case Windows, rather than the reverse. So we could make the flag generic, e.g. 'on_windows' or something, and move it up to the top scope. Then we could just unset the 'share["nfs"]' if we're 'on_windows', or something.
Comment #5
franskuipers commentedNFS is working for me on Ubuntu. I share www/ on the guest with /var/www/ on the VM. On the guest I can't chown the files, I have the feeling that is never possible.
I (the vagrant user) and, more importantly, the www-data user can both write to this shared directory. I can develop on the guest and it is reflected on my VM server.
PS: I can't get the /vagrant/ directory on the VM configured so that www-data can write to this directory. User vagrant has write access here.
Comment #6
rerooting commentedFYI I found this while looking around, I'll let you know how it works (on Mint, but I had these same problems on OSX before)
https://github.com/gael-ian/vagrant-bindfs
Comment #7
niccolox commentedon Ubuntu 12 host/Ubuntu 12 guest the following worked for me with discourse
note; I also had to add host IP determined by vagrant and guest IP determined by Vagrant to firewall exceptions