[chef] Re: Re: knife bootstrap windows winrm - timeout.


Chronological Thread 
  • From: "Button, Steve" < >
  • To:
  • Subject: [chef] Re: Re: knife bootstrap windows winrm - timeout.
  • Date: Thu, 16 Apr 2015 07:16:58 +0100


1) Some questions and a guess:

What version of knife-windows are you using?

​I'm using knife on a Mac, and it's Chef: 11.16.2​
 

Are you really logging in as plain administrator, or are you using a domain account?

​Yes, plain administrator​
 

Are you running this on a Windows workstation?
​On a Mac​
 

If your answers are "0.8.4", "yes plain local Administrator", and "yes, windows workstation", then try this instead:

knife bootstrap windows winrm 'server.nightly.bla' -r 'app::base' -x .\administrator -P 'xyz'

That is, specify .\Administrator instead of Administrator. In 0.8.4 this triggers the use of the negotiate protocol for authentication.

​Tried that, same thing. But I'm not using knife-windows.​
 

2) You can also use these commands to test your remote winrm configuration:

This should give you a few lines of text that doesn't look like an error (change the IP):
test-wsman 192.158.5.105



Run this in powershell, enter Administrator and the password on the remote machine
$Credential = Get-Credential

You'll need to trust the remote machine probably for the following tests. The output for test-wsman should be similar to the last time you ran it.
winrm set winrm/config/client '@{TrustedHosts="192.168.5.105"}'
test-wsman 192.168.5.105 -Authentication Basic -Credential $Credential
test-wsman 192.168.5.105 -Authentication Negotiate -Credential $Credential

3) Finally if you're still having problems, run and share the output of "winrm get winrm/config/service"

​.... Ahhh! (slaps forehead)

When running that command I notice that 
AllowUnencrypted
 was​
 
​set to false. 

I'm now getting an error about my .pem file missing, but I can solve that one hopefully.

Many thanks! ... and there are some useful commands you've shown me for a Linux admin, using a Mac to build Windows machines! :-)







Archive powered by MHonArc 2.6.16.

§