Disabling SMB sync method for Windows hosts under Vagrant 1.7.2

275 views
Skip to first unread message

David Severski

unread,
Jan 16, 2015, 10:59:48 AM1/16/15
to vagra...@googlegroups.com
Recent versions of Vagrant now default to creating shares on Windows hosts for mapping to guests. This is documented as an early iteration of the feature and has some known problems, mainly with shares never being cleaned up across multiple different vagrant runs. I can't get this feature to work at all and would like to tell Vagrant to not use this method under any circumstances. Setting a share stanza to disabled status is not sufficient as plugins such as vagrant-berkshelf will still try to create a share and map it with SMB. I can't easily run without admin privileges (the other way to avoid SMB from kicking in) as I use frequently use vagrant-vmware-workstation which requires admin privs.

How can I fully disable this interesting, but not yet ready for prime time, feature of Vagrant 1.7.2 under Windows 7 x64?

David

David Severski

unread,
Feb 12, 2015, 9:55:46 PM2/12/15
to vagra...@googlegroups.com
Bumping this thread. The default behavior of Vagrant 1.7.2 to create SMB shares for every vagrant up action is not just annoying, but flat out non-functional. I don't understand how this can be a functional state for anyone running Vagrant on Windows hosts. Running with a non-admin command window isn't a good solution as I run both VMWare and AWS providers, so admin privs are needed for VMWare function. How can the behavior of using Windows SMB shares be fully turned off?

Thanks for the help!

David

Alvaro Miranda Aguilera

unread,
Feb 13, 2015, 3:40:30 AM2/13/15
to vagra...@googlegroups.com
have you tried:

config.vm.synced_folder ".", "/vagrant", disabled: true

config.vm.synced_folder ".", "/vagrant", type: "smb", disabled: true
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

David F. Severski

unread,
Feb 13, 2015, 11:36:11 PM2/13/15
to vagra...@googlegroups.com
I'm afraid so. I'm also using vagrant-berkshelf, which triggers the default folder sync/sharing action, causing SMB sharing to kick in.

David

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/NwyTea-g6Vc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages