Closed lonniev closed 8 years ago
It's not mutually exclusive, the update script installs open SSH at the end of the run so that Packer can then connect to it and run its own scripts. We don't install Open SSH initially so that packer doesn't attempt to run provisioning during reboot cycles of windows update runs.
Uh, oh, getting burned by that now during the packer build attempt. Going to look at the update script to confirm that. (Again would be cool if the README or the XML said, "no need to turn these both on". It doesn't say that yet, does it? ;-) )
Well, gollee, there it is in the update script. Ok, I leave it with the recommendation that the XML indicate that or that the windows update script gets a name like, "update windows and install openssh".
Reopening to update documentation as suggested. Thanks for the feedback!
There is a discrepancy (which adds to the confusion) with the autounattend.xml files between windows 7 and windows 2012 r2 for example.
In the Windows 7 Autounattend.xml file, the "" section disables windows updates, but that section in some of the other Autounattend.xml files do not.
I also think that openssh should be installed regardless of windows updates so that packer can actually connect to the vm as part of its build process because packer doesn't support WinRM yet.
Thank you.
Some of us want an updated Windows image WITH openssh installed. Why does Autounattend.xml place its commenting so that one gets one or the other but not both?
If there's an incompatibility here, then document it.