You see the error:
- No operating system was found In the VMs console
- Unable to boot to Operating System
When viewing the .vmx file, scsi0:0.fileName is pointing to a disk that doesn't have the OS installed
scsi0:0.fileName = "VM-name_2.vmdk"
cd /vmfs/volumes/datastore/VMname/vmware.log shows below entries:
<snip>
yyyy-mm-ddThh:mm:ss:ms8Z| vcpu-0| I120: Msg_Post: Warning
yyyy-mm-ddThh:mm:ss:ms8Z| vcpu-0| I120: [msg.Backdoor.OsNotFound] No operating system was found. If you have an operating system installation disc, you can insert the disc into the system's CD-ROM drive and restart the virtual machine.
yyyy-mm-ddThh:mm:ss:ms8Z| vcpu-0| I120: ----------------------------------------
</snip>
cd /var/log/hostd.log shows as below:
<snip>
yyyy-mm-ddThh:mm:ss.330Z info hostd[45940B70] [Originator@6876 sub=Vimsvc.TaskManager opID=HB-host-123@14202-517629d-1-6385 user=vpxuser] Task Created : haTask--vim.OverheadService.downloadVMXConfig-1017314
yyyy-mm-ddThh:mm:ss.331Z warning hostd[44881B70] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx/VM-name_2/VM-name_2.vmx] Failed to find activation record, event user unknown.
yyyy-mm-ddThh:mm:ss.331Z info hostd[44881B70] [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 380 : Warning message on VM-name_2 on ESXi6-c.gss.local in ha-datacenter: No operating system was found. If you have an operating system installation disc, you can insert the disc into the system's CD-ROM drive and restart the virtual machine.
yyyy-mm-ddThh:mm:ss.331Z info hostd[44881B70] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx/VM-name_2/VM-name_2.vmx] Answered question 42284393
</snip>
One of the cause can be change in BIOS setting of VM from Legacy to UEFI for VM running with older hardware version
grep scsi0:[^*].fileName *.vmx
Example output:
scsi0:0.fileName = "VM-name_2.vmdk"
scsi0:1.fileName = "VM-name_1.vmdk"
scsi0:2.fileName = "VM-name.vmdk"
scsi0:3.fileName = "VM-name_3.vmdk"
scsi0:0.fileName = "VM-name_2.vmdk" with scsi0:2.fileName = "VM-name.vmdk
scsi0:0.fileName = "VM-name.vmdk"
scsi0:1.fileName = "VM-name_1.vmdk"
scsi0:2.fileName = "VM-name_2.vmdk"
scsi0:3.fileName = "VM-name_3.vmdk"
Recreating a lost or deleted vmx file
Locating a hosted virtual machine's files
Tips for editing a .vmx file
Impact/Risks:
Always backup configuration files before editing them.