To resolve this issue, you have to recreate the VMDK header/descriptor file.
On products such as VMware Workstation and VMware Server, you need to use the vmware-vdiskmanager utility to create a new disk of the same type and size of the -flat.vmdk file.
In Windows, this utility is located in the install directory of VMware Server or VMware Workstation (C:/Program Files/VMware/).
To recreate the VMDK header/descriptor file:
- If you are using Windows, locate the utility in the install directory of VMware Server or VMware Workstation (C:/Program Files/VMware/).
- Run the command:
vmware-vdiskmanager.exe <create disk> <size> <adapter> <disk-type> <path>
For example, to create a 20 GB persistent size disk for use with Windows Server 2003 on the e: drive, run the command:
vmware-vdiskmanager.exe -c -s 20GB -a lsilogic -t 2 "e:\newdisk.vmdk"
Note: For more information about vmware-vdiskmanager.exe, consult the Linux man page (man vmware-vdiskmanager) or Windows Help (vmware-vdiskmanager /?).
- Copy the new VMDK descriptor file to the folder where the problematic virtual machine is located, and edit the flat file to which it points so it has the correct name.