Closed lindhe closed 3 weeks ago
Hi @lindhe,
Thanks for the bug report!
While this Unexpected EOF
which caused Packer to crash is coming from the SDK (likely even gob), the underlying problem is coming from a nil driver that gets coerced in the Cleanup code of the connect step for some reason.
Fixing the serialisation/stream EOF error will take some time, but this vsphere bug can be independently addressed I'd think.
Interestingly, I get the expected error:
==> vsphere-iso.linux-photon: Post "https://m01-vc01.rainpole.io/sdk":
tls: failed to verify certificate: x509: certificate signed by unknown authority
Oh really? That is surprising. Same packer version? And did you try with my example or a different one?
Is your vcenter_server
variable set to m01-vc01.rainpole.io
or https://m01-vc01.rainpole.io
or something else?
Community Note
Overview of the Issue
I'm working towards a vcenter server with a TLS certificate form a private CA. If I'm trying to build a VM using Packer, with
insecure_connection=false
, then it crashes. If I add the cert to my host, or if I useinsecure_connection=true
, it works as intended.Posting this since I was greeted with this:
Reproduction Steps
Run
packer build .
with the simplified packer template shown below.Packer version
Simplified Packer Template
Operating system and Environment details
Ubuntu 22.04.4 LTS as a WSL2 environment on Windows 11.
Log Fragments and crash.log files
crash.log