VMWare – Moving thin VMDKs and keeping them thin! SIMPLIFIED!

Moving thin disks and keeping them thin after the move can be a pain. Here are the quick steps needed to move a Virtual Machine with thin provisioned disks.

  1. Enable SSH on your ESXi box
  2. cd vfms/volumes
  3. Find your target VMFS volume i.e. /vmfs/volume/iSCSI RAID 5/
  4. Navigate into the target VMFS volume and create a directory for the new virtual machine i.e. win2k8_server
  5. cd into the new directory
  6. Highlight and copy the directory
  7. go back to /vmfs/volumnes
  8. Find your source VMFS volume i.e. vmfs/volumes/Local RAID 5/win2k8_server
  9. Navigate into the source VMFS volume
  10. Navigate into the virtual machine directory you want to copy
  11. Copy the VMX file over to the target directory
  12. Finally, use the following command to copy the VMDK
    vmkfstools –i source.vmdk target.vmdk –d thin
  13. Done! :)

Leave a Reply