You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i would like to use sync_type: smb, which is suggested when using windows as host. The problem is, i cannot mount the folder like vagrant wants to do it, when i type vagrant up!
So i then copied the command with which he wants to mount and booted the guest with sync_type default, to test it myself. Same error, of course, but i could play around a little with it.
I found out, that removing the flag sec=ntlmssp binds the drive successfully. Now the problem is, i cannot change this flag value through the puphpet configuration... so it would work with vagrant up.
The other problem is, that while this mount works, my web server cannot make directories, i always get permissions denied.
And another issue here is, that the symlinks don't seem to work, even if i somehow workaround the permission problem... Why are there so many isses..?
I checked a lot of everything on the web and now i finally came to open this issue. Any help is appreciated.
Vagrant version
Vagrant 2.0.2
Host operating system
Windows 10 pro
Vagrant plugin list
vagrant plugin list
vagrant-vbguest (0.15.1)
VirtualBox
Version 5.2.6 r120293 (Qt5.6.2)
Guest operating system
Linux test.dev 2.6.32-696.20.1.el6.x86_64 #1 SMP Fri Jan 26 17:51:45 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
I hit the same issue. The problem is caused by sec=ntlmssp and is fixed by overriding that with sec=ntlm. You can apply the override through the options array in the Vagrantfile like so:
Thanks for answering! I didn't know that you can override it through the Vagrantfile.
I was losing my mind trying to fix this, so eventually i then made a fresh box with CentOS 7 and everything worked without a problem (with sec=ntlmssp)
The result however is sad. I don't have any performance increase using smb mounted folders. So i don't know why it's even "HIGHLY RECOMMENDED".
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Mar 30, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi guys!
So i would like to use sync_type: smb, which is suggested when using windows as host. The problem is, i cannot mount the folder like vagrant wants to do it, when i type vagrant up!
So i then copied the command with which he wants to mount and booted the guest with sync_type default, to test it myself. Same error, of course, but i could play around a little with it.
I found out, that removing the flag sec=ntlmssp binds the drive successfully. Now the problem is, i cannot change this flag value through the puphpet configuration... so it would work with vagrant up.
The other problem is, that while this mount works, my web server cannot make directories, i always get permissions denied.
And another issue here is, that the symlinks don't seem to work, even if i somehow workaround the permission problem... Why are there so many isses..?
I checked a lot of everything on the web and now i finally came to open this issue. Any help is appreciated.
Vagrant version
Vagrant 2.0.2
Host operating system
Windows 10 pro
Vagrant plugin list
vagrant plugin list
vagrant-vbguest (0.15.1)
VirtualBox
Version 5.2.6 r120293 (Qt5.6.2)
Guest operating system
Linux test.dev 2.6.32-696.20.1.el6.x86_64 #1 SMP Fri Jan 26 17:51:45 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
CentOS release 6.9 (Final)
Vagrantfile
Debug output
mount -t cifs -o sec=ntlmssp,credentials=/etc/smb_creds_vgt-62e0f95bf5540ccef4db6862f8cc5ec3-72af2cc030a13ce49f623394bbebbf2c,uid=501,gid=501,dir_mode=0775,file_mode=0664 //192.168.0.21/vgt-62e0f95bf5540ccef4db6862f8cc5ec3-72af2cc030a13ce49f623394bbebbf2c /var/www/share
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Expected behavior
Successfull mount?
Actual behavior
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
The text was updated successfully, but these errors were encountered: