jetbrains-infra / packer-builder-vsphere

Packer plugin for remote builds on VMware vSphere
Mozilla Public License 2.0
543 stars 175 forks source link

vsphere-iso error #313

Closed unnikrishnan262 closed 4 years ago

unnikrishnan262 commented 4 years ago

I am trying to build a template using vsphere-iso and he'll 7. Build fails after the VM is installed with below error.

2020/05/14 10:54:12 ui: ==> vsphere-iso: Power off VM...
2020/05/14 10:54:14 ui: ==> vsphere-iso: Deleting Floppy image ...
2020/05/14 10:54:16 packer-builder-vsphere-iso plugin: Deleting floppy disk: /var/folders/8r/37nc746939gb_xgzqdzb24l40000gp/T/packer197551537
2020/05/14 10:54:16 ui: ==> vsphere-iso: Destroying VM...
2020/05/14 10:54:17 [INFO] (telemetry) ending vsphere-iso
2020/05/14 10:54:17 ui error: Build 'vsphere-iso' errored: Post "https://vmvcs001.xxxx.com/sdk": read tcp 10.173.143.84:51242->10.14.203.48:443: read: connection reset by peer
2020/05/14 10:54:17 machine readable: error-count []string{"1"}
2020/05/14 10:54:17 ui error:
==> Some builds didn't complete successfully and had errors:
2020/05/14 10:54:17 machine readable: vsphere-iso,error []string{"Post \"https://vmvcs001.xxxxx.com/sdk\": read tcp 10.173.143.84:51242->10.14.203.48:443: read: connection reset by peer"}
2020/05/14 10:54:17 ui error: --> vsphere-iso: Post "https://vmvcs001.xxxxx.com/sdk": read tcp 10.173.143.84:51242->10.14.203.48:443: read: connection reset by peer
2020/05/14 10:54:17 ui:
==> Builds finished but no artifacts were created.
2020/05/14 10:54:17 [INFO] (telemetry) Finalizing.
2020/05/14 10:54:19 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post "https://checkpoint-api.hashicorp.com/v1/telemetry/packer": context deadline exceeded
2020/05/14 10:54:19 waiting for all plugin processes to complete...
VladRassokhin commented 4 years ago

read: connection reset by peer

Is there any problems in vCenter tasks/events/logs? Is connection between packer and vCenter stable enough?

unnikrishnan262 commented 4 years ago

The issue was with the vmware tools. After the tools installation, it worked.