Thanks Michael. I'm in the progress of fixing this. Now that the upstream
winrm gem properly throws an auth error, we can fail fast in Vagrant
instead of retrying to connect without any obvious error to indicate you
have the wrong user/pwd.

On Thu Jan 29 2015 at 8:20:33 AM Michael Zhou <[email protected]>
wrote:

> Understanding this topic is a couple of months old, but I hope this can
> benefit anyone who is searching for the answer. I fixed the same issue in
> my case by having these two lines added to my Vagrantfile.
>
>   config.winrm.username = "Administrator"
>   config.winrm.password = "supply your administrator password here"
>
> That should allow Vagrant to WinRM into the Windows guest using the
> supplied credentials. You can use other users created on the base box, but
> make sure that user is added to administrators group and it has the
> privilege to remotely execute programs.
>
> Here is my environment:
>
> Vagrant: 1.6.5
> Host OS: Windows 7
> Guest OS: Windows 2008 R2
>
>
> On Tuesday, June 10, 2014 at 3:46:18 PM UTC-4, Nick Anderson wrote:
>>
>> I am trying to build a Windows Server 2012 vm that I can use with Vagrant
>> and Virtualbox.
>>
>> It's not clear to me what I need to do. Here are the things I have done
>> on the Windows vm that I am preparing as a basebox.
>>
>> Disable password complexity requirements
>> Set minimum password age to 0
>> Set Administrator password to 'vagrant'
>> Create vagrant user
>> Set vagrant users password to 'vagrant'
>> Enable remote desktop
>> Add the vagrant user to the allowed list of remote desktop users
>> Allow all connections from computers running any version of RDP (or my
>> linux client cant rdp successfully)
>> Install ruby 1.9.3 from rubyinstall.org
>> Install winrm with geminstall -rwinrm
>> Configure winrm with winrm quickconfig
>> Disable UAC
>> Disable Server Manager on login
>> Disable Shutdown Tracker
>> Ensure that network is set to "Private"
>> Install Virtualbox guest tools
>>
>> I export the vm as a box, import it to vagrant
>> I think generate a vagrant config using vagrant init <name of windows box>
>> And then I added config.cm.communicator = "winrm"
>> Finally I vagrant up my env.
>>
>> The VM comes up without issue, but Vagrant just sits waiting for the
>> machine to boot until it times out.
>> vagrant rdp does nothing
>>
>> I am able to manually log in with rdesktop if I specifically forward a
>> port
>> config.vm.network "forwarded_port", guest: 3389, host: 53389
>>
>> Then rdesktop localhost:53389 will give me the windows login screen.
>>
>> I have tried with and without the vagrant-windows plugin.
>>
>> I am running vagrant 1.6.3 on Ubuntu.
>>
>> It seems like I am missing some basic thing. Have I missed some
>> documentation somewhere?
>>
>  --
> 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/wuyeXE0Wakg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to