Before performing the steps below, make sure there is a backup of the affected Virtual Machine.
- Make sure the Virtual Machine is in a Powered Off State.
- Right click on affected Virtual Machine and Click on Edit Settings.
- Select the Hard Drive that is displaying a size of 0MB, Click on three dots to the right of the drive and select "Remove Device". (Do not select "Remove device and data")
- Click OK.
- Right click on affected Virtual Machine and Click on Edit Settings again.
- Click on "Add New Device" and select "Existing Hard Disk".
- Navigate to the VM folder, and attach the correct vmdk file.
- Click OK, then Power on the Virtual Machine.
- Check and verify the vmdk size on both vCenter and ESXi host client. The correct size should be displayed.
If the vmdk file is missing or corrupted, it may need to be replaced by following Recreating a missing VMware virtual machine disk descriptor file (.vmdk)
In the case that there is an inconsistent snapshot chain, please follow Locate and remediate CID/parentCID mismatches in snapshot descriptor files using a scripted method.