Consolidating Multiple VMware VMDK Disk Files into One

If you have older VMware Workstation disk images (vmdk files) that are split into multiple parts, you can consolidate them into a single disk image from the command prompt:

vmware-vdiskmanager -r MyVirtualMachineDisk.vmdk -t 0 SingleDiskFile.vmdk

The “-t 0” means “single growable virtual disk”.  If you prefer to preallocate all the storage for the disk, use “-t 2” instead, which means “preallocated virtual disk.”  You can view more options by running the vmware-vdiskmanager command with no parameters.  It will show you what options are available.

I found this solution at http://ubuntuforums.org/showthread.php?t=740914.  However, don’t let the fact that it’s on an Ubuntu site fool you; it works just fine on Windows.