7 ms·
Hell yes. Watching packer shit a brick 5 times a day trying to upload virtualbox guest additions via WinRM makes me want this yesterday. Also I had to up the m
by togusa 11y ago
Hell yes. Watching packer shit a brick 5 times a day trying to upload virtualbox guest additions via WinRM makes me want this yesterday.
Also I had to up the memory ceiling on WinRM to 800Mb (WTF!) to even get it to complete.
- MichaelGG 11y agoIt really is surprisingly bad, isn't it? I recently was involved in a continuous deployment system targeting Windows. We simply couldn't get WinRM to reliably upload fast and ended up installing SSH everywhere.
- togusa 11y agoYep definitely the worst thing ever. Not just that though; everything. I've lost so much hair in the last few months over trying to get a CD environment up on windows.
- switch007 11y agoThis. Everything about Windows and automation just feels like Bill & co really hates you personally, hates your company, and even the air you breath
- jen20 11y agoHaving worked on that code (in Packer) - the WinRM protocol is completely unsuitable for use as an SCP replacement. It's amazing it works at all even for small files! The actual "winrmcp" implementation is here https://github.com/packer-community/winrmcp https://github.com/packer-community/winrmcp if you're interested in the inner workings.
- MichaelGG 11y agoOK, but that code (cp.go) uploads base64 chunks of 8K and echo's them to a file and decodes when done. That surely isn't the real WinRM file copy implementation right? Well... I just went looking for how it's implemented and holy shit I don't think they considered this case. Top results say "use a file share". Wow. I feel less inadequate.
- togusa 11y agoYep that's horrible whatever the basis for it is.
- togusa 11y agoOh wow that's just horrible. I wish I hadn't looked now!
- antod 11y agoI can't help but nod knowingly :) I was so keen for WinRM support to land in Packer so I could avoid installing cygwin. It was out of the frying pan and into the fire. Native Windows SSH should _hopefully_ solve all this hassle.