Virtual machine disks showing "0MB" size in vCenter and incorrect disks size in ESXi Host Client
book
Article ID: 414458
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
Edit setting of virtual machine on vCenter shows hard disks as "0MB" in size
Host Client UI shows incorrect disks size
Environment
VMware vSphere ESXi
VMware vCenter
Cause
VMDK showing 0 MB is typically caused by a corrupted or missing descriptor file
An inaccessible datastore, or an inconsistent snapshot chain. The underlying issue is often that the host cannot find or read the necessary files to determine the disk's actual size, resulting in it displaying 0 MB
Resolution
Before performing the steps below ensure having a backup of the affected Virtual Machine
Make sure the Virtual Machine is in Powered Off State
Right click on affected Virtual Machine and Click on Edit Settings
Select the Hard Drive, Click on "X" mark on right hand side and Detach the drive (Make sure not to check the box, where it says, delete the data from Datastore, leave it unchecked)
Click on Save and exit
Right click edit settings on Virtual Machine
Click on "Add" External Drive and click on Attach
Navigate to the VM folder, and attach the vmdk
Click on Save and then Power on the Virtual Machine
Check and verify the vmdk size on both vCenter and ESXi host client, we should be able to see the correct size of the vmdk