vmkfstools -x check /vmfs/volumes/DatastoreName/VMName/VMName.vmdk
Corrupt VMDK files can lead to failed virtual machine (VM) boots, I/O errors, and potential data loss in VMware ESXi environments. Corruption often occurs due to abrupt power failures, overfilled physical disks, or improper VM shutdowns. Common Symptoms of VMDK Corruption
Once the new VM is created, navigate to its folder via SSH. You will see a .vmdk (descriptor) file. esxi repair corrupt vmdk
ls -l *.flat.vmdk
If the output reads , proceed to the repair step. You will see a
Always make a copy of the corrupt VMDK before attempting any repair. One wrong command can make the situation irreversible.
cat /vmfs/volumes/DatastoreName/VMName/VMName.vmdk One wrong command can make the situation irreversible
Look for the line RW <size> VMFS "BrokenVM-flat.vmdk" . Ensure the filename in quotes matches the name of your actual flat/data file exactly. Save and exit.