packer-builder-vsphere icon indicating copy to clipboard operation
packer-builder-vsphere copied to clipboard

Validation failing for cdrom_type, disk_controller_type & disk_thin_provisioned.

Open Srini-B-GIT opened this issue 7 years ago • 5 comments

I am using vsphere-iso plugin to to create rhel7.5 template vmware environment. template validation is failing with below ..

$ ./packer validate rhel75.json Template validation failed. Errors are shown below.

Errors validating build 'vsphere-iso'. 3 errors occurred:

  • unknown configuration key: "cdrom_type"
  • unknown configuration key: "disk_controller_type"
  • unknown configuration key: "disk_thin_provisioned"

values provided in rhel75.jason below and are picked like it based on the suggestion in https://github.com/jetbrains-infra/packer-builder-vsphere

 "cdrom_type": "ide",
  "disk_controller_type": "lsiLogic",
  "disk_thin_provisioned": "true",

so please suggest if these are correct .

Srini-B-GIT avatar Nov 09 '18 20:11 Srini-B-GIT

After changing the parameters names validation is still failing .. any suggestions ?

  • unknown configuration key: "cdrom_adapter_type"
  • unknown configuration key: "disk_adapter_type"
  • unknown configuration key: "disk_thin_provisioned"

Srini-B-GIT avatar Nov 13 '18 16:11 Srini-B-GIT

please show the full file

mkuzmin avatar Dec 23 '18 16:12 mkuzmin

I was also having the same issue with "disk_controller_type". I needed support for the four listed SCSI types from VMware. (BUSLOGIC, LSILOGIC, LSILOGICSAS, and PVSCSI). But then I found this doc and these values are accepted (lsilogic|buslogic|pvscsi|lsilogic-sas)

Created a PR https://github.com/jetbrains-infra/packer-builder-vsphere/pull/218

jpgrall avatar Feb 18 '19 21:02 jpgrall

Thank you @jpgrall ! That is hugely helpful. Could not find this anywhere in the documentation, nor in multiple guides around ESXi or Workstation as the govmomi values don't seem to match what's documented for other systems and also don't match what's in the VMX file. Why!?!?!?!

aaronk1 avatar Nov 15 '19 19:11 aaronk1

Thanks for the comments here folks, it helped me! Like you I spent an embarrassing amount of time thinking I was the issue. The above PR should fix that for others.

jonhowe avatar Aug 03 '21 20:08 jonhowe