Thanks for the
response.
1.
I figured that you have not
validated bootstrap on a Windows non-gui CI version. I’m doing this
on a VM we have in our vCenter, loaded with a stock Windows Server
2012 R2 Core OS with all the Windows updates.
2.
I’m using a stock bootstrap
(I don’t know enough about Chef to use a custom bootstrap
J
). Notepad++ is installed yes, again,
this is a stock OS. Incidentally, I issued notepad++ on the command
line and a notepad++ window popped up.
What does the "c:\Users\Administrator\Desktop\Change
was unexpected at this time.” Error?
Chris
From:
Adam Edwards [mailto:
Sent: Wednesday, December 03, 2014 1:55 PM
To:
Subject: [chef] RE: RE: Please help bootstrapping Windows
Server 2012 R2 Core (non-GUI version of Window Server 2012 R2
Standard)
There are two
interesting things here:
1.
We haven’t validated running on the
non-gui version in CI – I can’t think of a reason it wouldn’t work.
Are you doing this via a stock image with a cloud provider – if so,
which one? This would help us in doing an exact repro.
2.
You have a strange “notepad++” line in
the error output – are you using a custom bootstrap template? Is
notepad++ installed on the system in some way? This shouldn’t cause
a problem, but I’d like to understand what might be unique about
the remote system.
Thanks.
-Adam
From: Fouts, Chris [mailto:
">
]
Sent: Wednesday, December 3, 2014 10:50 AM
To:
">
Subject: [chef] RE: Please help bootstrapping Windows Server
2012 R2 Core (non-GUI version of Window Server 2012 R2
Standard)
Since I got no
response, I assume that this is an honest-to-goodness bug, and that
bootstrap was never tested on a Windows Server 2012 R2
Core?
The step that
fails mentions “notepad++” but of course notepad++ cannot run on a
non-GUI OS?
Chris
From:
Fouts, Chris [
">mailto:
]
Sent: Tuesday, December 02, 2014 2:18 PM
To:
">
Subject: [chef] Please help bootstrapping Windows Server
2012 R2 Core (non-GUI version of Window Server 2012 R2
Standard)
Note that Windows Server 2012 R2 Core is the
“non-GUI” version of Windows Server 2012 R2 Standard. It runs a
Windows command prompt when one logs into the console, that’s
it.
I’m able to do this, so I know I set up winrm
correctly. Node name, password and port# have been changed.
~]# knife winrm "Mynode.domain.com" "dir" -m -x
domain\\Administrator -P Password -p 1234
Mynode.domain.com Volume in drive C
has no label.
Mynode.domain.com Volume Volume
Serial Number is EE8C-90E1
Mynode.domain.com Volume Directory
of C:\Users\Administrator
Mynode.domain.com Volume
Mynode.domain.com Volume
03/03/2014 04:52 PM
<DIR>
.
Mynode.domain.com Volume
03/03/2014 04:52 PM
<DIR>
..
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Contacts
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Desktop
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Documents
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Downloads
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Favorites
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Links
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Music
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Pictures
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Saved Games
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Searches
Mynode.domain.com Volume
09/18/2014 04:05 PM
<DIR>
Videos
Mynode.domain.com Volume
0
File(s)
0 bytes
Mynode.domain.com Volume
13
Dir(s) 51,591,532,544 bytes free
I get this during bootstrap.
~]# knife bootstrap windows winrm "Mynode.domain.com" -N "london-db1"
-x domain\\Administrator -P Password -p 1234
Waiting for remote response before bootstrap.
Mynode.domain.com.
Mynode.domain.com Response
received.
Remote node responded after 0.0 minutes.
Bootstrapping
Chef on london-db1.davis.sensus.lab
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 1"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 2"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 3"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 4"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 5"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 6"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 7"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 8"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 9"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 10"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 11"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 12"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 13"
Mynode.domain.com "Rendering
"C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat"
chunk 14"
Mynode.domain.com
\notepad++\";"c:\Users\Administrator\Desktop\Change
was unexpected at this time.
ERROR: Failed to
execute command on Mynode.domain.com return code
1
Where can I get a more verbose message that I
can share?
Chris