Hello,
Been playing with packer 1.7.3 for vsphere-iso. I am currently running into an issue where packer will wait for an IP address for only 90s-120s then cleans up the artifact it is building.
I’ve been able to deploy the template in debug mode by allowing more time for the installation to complete before stepping through. Is there a way to tell packer to wait longer? It seems to exit when it is still installing the packages. Tried to set both ssh_timeout and ip_settle_timeout but that has no effect on how long it waits. Running this in a home lab environment layer 2 adjacent. Using the local admin account for the deployment.
receiving the following error’s
errored after 1 minute 19 seconds: POST "/sdk": 504 Gateway Timeout
2021/08/12 21:24:46 packer-builder-vsphere-iso plugin: [INFO] Waiting for IP, up to total timeout: 1h0m0s, settle timeout: 30m0s
==> vsphere-iso.autogenerated_1: Waiting for IP...
==> vsphere-iso.autogenerated_1: Power off VM...
==> vsphere-iso.autogenerated_1: Deleting Floppy image ...
2021/08/12 21:26:09 packer-builder-vsphere-iso plugin: Deleting floppy disk: /var/folders/rt/cd8by_4n1_j0dnrrs11hc8b80000gn/T/packer380722607
==> vsphere-iso.autogenerated_1: Destroying VM...
2021/08/12 21:26:09 [INFO] (telemetry) ending
==> Wait completed after 1 minute 39 seconds
2021/08/12 21:26:09 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2021/08/12 21:26:09 machine readable: vsphere-iso.autogenerated_1,error []string{"POST \"/sdk\": 408 Request Timeout"}
==> Builds finished but no artifacts were created.
Build 'vsphere-iso.autogenerated_1' errored after 1 minute 39 seconds: POST "/sdk": 408 Request Timeout
2021/08/12 21:26:09 [INFO] (telemetry) Finalizing.
==> Wait completed after 1 minute 39 seconds
==> Some builds didn't complete successfully and had errors:
--> vsphere-iso.autogenerated_1: POST "/sdk": 408 Request Timeout
==> Builds finished but no artifacts were created.