When building a Centos 7 template with remote ESX host the shell provisioner doesn't successfully upload the script to be run and eventually times out. The specific error is "scp output: scp: broken pipe"
Please supply the information requested in the issue template:
Please attach your Kickstart file.
I'm getting something very similar. However, I'm creating an Ubuntu 16.04 template with Hyper-V as my builder.
Any idea? I've setup OpenSSH on my builder box, but I'm not sure if that's the SCP it's trying to use. I can manually copy the files over with SCP.
I'm seeing exactly the same effects as @sredne when trying to build a CentOS based AMI for EC2. Build host is running Amazon Linux.
So I ended up resolving the problem by rolling back to 1.1.3.
I think this issue is similar to https://github.com/hashicorp/packer/issues/6135
Sounds like this may have been a duplicate of #6135 and was hopefully resolved with the 1.2.3 release; please upgrade and if that doesn't resolve your issues, we'll reopen.
Got sucked into rabbit holes and stuff but finally tried 1.2.3. No more problems.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
So I ended up resolving the problem by rolling back to 1.1.3.
I think this issue is similar to https://github.com/hashicorp/packer/issues/6135