winrm authorization failure

348 views
Skip to first unread message

lucidbee

unread,
Aug 25, 2017, 9:27:10 PM8/25/17
to Vagrant
I was having this problem so I upgraded vagrant and I am still having it. Used to work.
Currently on vagrant 1.9.8
Windows 10 pro
A development, not production, system.

From the Vagrantfile:


  config.vm.define "win10dev" do |win10dev|

    config.vm.guest = :windows
    config.vm.communicator = "winrm"
    config.vm.boot_timeout = 600
    config.vm.graceful_halt_timeout = 600

    win10dev.vm.box = "bonsai/win10dev_4"
    config.vm.guest = :windows
    config.vm.communicator = "winrm"
    config.winrm.transport = :plaintext
    config.winrm.basic_auth_only = true
    config.winrm.password = "vagrant"
    config.winrm.username = "vagrant"


From the --debug trace:

DEBUG winrmshell: [WinRM] opening remote shell on http://192.168.184.150:5985/wsman
DEBUG winrmshell: [WinRM] opening remote shell on http://192.168.184.150:5985/wsman
DEBUG winrmshell: [WinRM] opening remote shell on http://192.168.184.150:5985/wsman
DEBUG winrmshell: [WinRM] opening remote shell on http://192.168.184.150:5985/wsman
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Endpoint: http://192.168.184.150:5985/wsman
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Endpoint: http://192.168.184.150:5985/wsman
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

How can I make this work again?
I want to provision.
thanks.



Alvaro Miranda Aguilera

unread,
Aug 26, 2017, 4:33:57 AM8/26/17
to vagra...@googlegroups.com
hello

try with a different box, it may be related that some boxes last some time from they are built, so that force to use fresh boxes.

enable gui or open virtualbox, poweroff/poweron and see if you can login

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/988139ce-fbea-4fb9-9d68-2cc729425562%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages