Disk capacity shows zero when registering VM with files copied/moved from other datastore.
search cancel

Disk capacity shows zero when registering VM with files copied/moved from other datastore.

book

Article ID: 391475

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

VM folders could be copied/moved to other datastore for better management sometimes. However, after registering VM with vmx file under the newly copied/moved VM folder, a notification might appear.

Some of the disks of the virtual machine <virtual machine name> failed to load. The information present for them in the virtual machine configuration may be incomplete.

Open VM edit page, one or more virtual disks show 0MB.

Cause

Virtual disks are described in vmx file with full path pointing to its original datastore. For example:

scsi0:0.fileName = "/vmfs/volumes/<Datastore-ID>/<VM-Name>/<VM-Name>.vmdk"

Resolution

  1. Remove VM from inventory if it's registered now.
  2. Remove "/vmfs/volumes/<Datastore-ID>/<VM-Name>/" from vmdk path in vmx file, only keep "<VM-Name>.vmdk". 
  3. Register VM. It should be fixed now.