jetbrains-infra / packer-builder-vsphere

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

vsphere-iso useless error message #227

Open alberto-sierra opened 5 years ago

alberto-sierra commented 5 years ago

I've been trying to build a VM from an ISO without success. vsphere-iso tells me something is wrong but it doesn't tell me what. completely useless error message. Can you suggest some way to debug? (packer's debug mode does not provide any additional detail)

vsphere-iso output will be in this color.

==> vsphere-iso: Retrieving ISO
    vsphere-iso: Found already downloaded, initial checksum matched, no download needed: http://mirrors.syringanetworks.net/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso
==> vsphere-iso: Uploading 385e2528c6efe1ff5b68e13a17f804929dbcb26ce5b0cbfd705e957e7f9d0709.iso to packer_cache/385e2528c6efe1ff5b68e13a17f804929dbcb26ce5b0cbfd705e957e7f9d0709.iso
==> vsphere-iso: File already upload
==> vsphere-iso: Creating VM...
Build 'vsphere-iso' errored: error creating vm: A specified parameter was not correct. 

==> Some builds didn't complete successfully and had errors:
--> vsphere-iso: error creating vm: A specified parameter was not correct. 

==> Builds finished but no artifacts were created.
VladRassokhin commented 5 years ago

A specified parameter was not correct comes from VMware, please check esxi console for any errors during operations. Although error reporting could be improved in 'CreateVM' function to understand which call to VMware failed.

johnmj commented 4 years ago

Ran into the same useless error message - the issue for me was an incorrect "guest_os_type" - For CentOS 7 64bit the "guest_os_type" should be "centos7_64Guest" - could you please try @alberto-sierra