Packer: Shell provisioner not working with ESX remote

Created on 9 Apr 2018  ยท  7Comments  ยท  Source: hashicorp/packer

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"

  • Packer v. 1.2.2
  • Windows 10 and ESXi 6.5
  • Debug log in Gist
buildevmware-esxi duplicate need-more-info question waiting-reply

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

All 7 comments

Please supply the information requested in the issue template:

  • The _simplest example template and scripts_ needed to reproduce the bug.
    Include these in your gist.

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.

  • Packer 1.2.2
  • Windows 10 1607 as my builder

Gist

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.

  • Packer 1.2.2

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.

Was this page helpful?
0 / 5 - 0 ratings