Problems Getting SMB working in Windows 7 64-bit

910 views
Skip to first unread message

Scott Keck-Warren

unread,
Mar 18, 2014, 11:17:10 AM3/18/14
to vagra...@googlegroups.com
Good morning,
I'm experimenting with the SMB file shares in Vagrant 1.5.1 and I'm running into a problem.  I changed the configuration in my Vagrant file from

    config.vm.synced_folder "./", "/var/www", id: "vagrant-root" 

to

    config.vm.synced_folder "./", "/var/www", id: "vagrant-root", type:"smb"


And then launched a command prompt using the "Run as administrator" option in the context menu.  I `cd`ed into my project directory and did a vagrant up.  When I did I got the following output:

Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Preparing SMB shared folders...
    default: You will be asked for the username and password to use for the SMB
    default: folders shortly. Please use the proper username/password of your
    default: Windows account.
    default:
    default: Username: <my username>
    default: Password (will be hidden): <entered my password here>

After I entered my password and hit enter it just sat there for 5 minutes.  I ended up `ctrl+c`ing the process so I could get back to work.  Is there anything else that I can try to fix this?  I'm really hoping SMB fixed some of the performance issues we've been having.  :-)

Any help would be greatly appreciated.

Thibaud

unread,
Mar 25, 2014, 7:31:05 AM3/25/14
to vagra...@googlegroups.com
I have the same issue, also on a 64bit windows 7.

Did someone manage to solve that ?

Paul Urban

unread,
Mar 26, 2014, 9:14:01 AM3/26/14
to vagra...@googlegroups.com
Got the same issue. 

shumisha

unread,
Mar 26, 2014, 10:02:41 AM3/26/14
to vagra...@googlegroups.com
Same issue. I enabled DEBUG logging, and I can see the process hangs right after entering the password. Last line in log is:

DEBUG subprocess: Selecting on IO

and nothing more. Needs to Ctrl-C to get prompt back.

shumisha

unread,
Mar 27, 2014, 3:46:46 AM3/27/14
to vagra...@googlegroups.com
I managed to go a bit further after some googling. You need to install Poweshell version 3 (as windows 7 comes with version 2).

After that the process goes on a bit longer, prompts for username and password (despite username being already given as a parameter in the vagrant file), but hangs afterwards.

More research lead me to a couple of bugs reports and patches on vagrant github page:
1 - you should not have spaces in the share path (windows side). There's a fix for that, probably in next version I guess
2 - there's still an issue with another fix here: https://github.com/mitchellh/vagrant/pull/3210

Haven't had time to test if it fixes it

cheers

Reply all
Reply to author
Forward
0 new messages