Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount_options creates invalid mount command? #2546

Closed
bitinn opened this issue Nov 27, 2013 · 2 comments
Closed

mount_options creates invalid mount command? #2546

bitinn opened this issue Nov 27, 2013 · 2 comments

Comments

@bitinn
Copy link

bitinn commented Nov 27, 2013

after upgrading from 1.2 to 1.3, I changed my config to this

config.vm.synced_folder "www", "/var/www", :mount_options => ["dmode=777","fmode=777"], :nfs => true

then on vagrant up i faced this issue:

Preparing to edit /etc/exports. Administrator privileges will be required...
[default] Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o 'dmode=777,fmode=777' 192.168.10.1:'/Users/teambegin/Desktop/git/leaf-server/www' /var/www

Stdout from the command:



Stderr from the command:

stdin: is not a tty
mount.nfs: an incorrect mount option was specified

using vagrant 1.3.5 with virtualbox 4.3.2, not sure which part of the mount command are wrong, and only difference appear to be -o doesn't use quote to wrap option string when separating options with comma.

@bitinn
Copy link
Author

bitinn commented Nov 28, 2013

#1029

i really wish this was documented somewhere in changelog or doc, especially if vagrant 1.3 require new syntax for :nfs as well!

the correct syntax after vagrant 1.3 is:

config.vm.synced_folder "www", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=777"] }

@UnkindPartition
Copy link

For the record, the working way to specify the nfs version (at least with Ubuntu 14.04 guest) is

config.vm.synced_folder "foo", "/home/vagrant/bar", :nfs => true, :mount_options => ['nfsvers=4']

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants