Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Terraform VMware vSphere Virtual Machine cloning Operating system not found

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.

Microsoft VMware vSphere vCenter ESXi vcsa vmware remote console lincense operating system not found network boot canceled terraform vm clone pxe rom.jpg

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.

Microsoft vsphere client vmware vsphere vcenter vcsa host esxi virtual machine vm edit settings virtual hardware vm options boot options firmware bios efi boot hard disk not found.jpg

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 codeUsing terraform to clone a virtual machine on VMware vSphere infrastructure

Terraform vsphere_virtual_machine resource windows VM count name datastore num_cpus memory scsi type datassources firmware network interface adapter clone template customize disk label vmware vcenter esxi.jpg

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

Go Back

Comment

Blog Search

Page Views

8559870

Follow me on Blogarama