After cloning VMWare Virtual Machine using Terraform code, I waited for a long time but terraform apply command was not getting completed and was in the creation state of indefinitely. The VM was cloned on the vCenter server and it was powered on. But when I checked on the VM VMware web remote console, There was an error while booting system Operating System not found.
Check another error: Terraform VMware vSphere Virtual Machine customization clone failed on Windows
This happens while cloning VMware Virtual Machine using Terraform. New VM's boot options firmware is reset to use the default option BIOS. But my original template VM is created with EFI firmware. To resolve the issue you can right click new Virtual Machine, select Edit Settings. Go to the VM Options tab and change the Firmware to EFI recommended in Boot options.
To resolve this issue inside Terraform HCL code add parameter option firmware = "efi" as shown in the below screenshot and reapply cloning VMware Virtual Machine operation. After applying It is successful.
Original VM cloning Terraform code: Using terraform to clone a virtual machine on VMware vSphere infrastructure
Useful Articles
VMWARE VSPHERE UPDATE MANAGER (VUM) - IMPORTING ESXI ISO AND CREATE UPGRADE BASELINE
VMWARE VSPHERE UPDATE MANAGER (VUM) - UPGRADE ESXI OS
ESXi 6.0 update offline bundle via esxcli commandline: DependencyError VIB bootbank requires VSAN ImageProfile
ESXi 6.5 upgrade bundle via command line: No Space Left On Device Error
Registering HPE ILO amplifier pack (Hardware support manager) with vCenter 7 Lifecycle manager
VMware LifeCycle Manager import updates bundle and patch ESXi server
How to update a patch on an ESXi host via command line
Add a Trusted Root Certificate to the Certificate Store VMware Photon OS
Patching update VMware vCenter Server Appliance from a zipped update bundle Web server
Powershell GUI VMware ESXi custom patch bundle builder
Create a custom TCPIP stack on ESXi server - VMware PowerCLI GUI