-
Notifications
You must be signed in to change notification settings - Fork 1.1k
OpenSSH vs WinRM #158
Comments
Hey @markhuber, I'm glad you're getting some use out of it. I think we should make WinRM the default mode but make it super easy to enable OpenSSH should someone wish to. This may involve just un-commenting one or a few lines in a script or an invocation of a script. If you could help with that I would welcome the assistance! |
@joefitzgerald I'm going to wait until at least packer 1.8.3 to make this conversion. After having worked with the winrm communicator for several days, I don't feel like it's ready for primetime. I'm specifically waiting for: In addition to those two pulls, I'm still seeing sporadic failures on the winrm communicator (subsequent reruns work perfectly fine... so much for idempotent builds). There are some smaller improvements I'll add in preparation on a separate PR. |
@markhuber hashicorp/packer#2443 and hashicorp/packer#2505 are merged so if you want to start working on this you can pull from packer master.
I've seen this too in the packer test suite. There is at least one race condition that causes winrm to fail frequently. |
I've been using WinRM successfully with some of my builds, but I had to make a couple of changes to the templates. If anyone is interested, this is what I had to do:
|
@mrled Thanks for sharing your steps. Please have a look at the PR #181 where we have started to port the templates to WinRM.
|
Closing as general consensus is to move to WinRM as the default. As @mrled remarked, don't upload large files over WinRM, as the protocol was not designed for that type of operation. There are various ways to get around that are easy enough to use. |
Just a quick question: I am using winrm. I notice that it takes about two or three minutes before the winrm connection is ready. When I start the machine in VirtualBox it only takes a few seconds, so apparently most of the time we are just waiting for winrm to start up. |
Check the start type of the winrm service. The start type delayed-auto starts a service 120 seconds later. |
Aha... changed the start type and and time went down to less then a minute. Super! |
@joefitzgerald Really loving this project, it has been a good starting point for some of our work.
I've modified the windows 2008r2 build to no longer depend on OpenSSH and instead use the WinRM support built into Packer 1.8. I was considering sending a PR to remove OpenSSH and use WinRM instead but I realize not everyone might actually want that. What's your opinion on SSH vs WinRM and whether or not to drop the OpenSSH server?
The text was updated successfully, but these errors were encountered: