Tuesday, January 10, 2012

Fixing broken VMware vSphere 5 VMDK disk image

These are kind of "last resort" fixes if all normal ways fail to resolve problem. No guarantees. Worked for me...

  • Make full backup of your virtual machine
  • Logon to ESXi console
  • Go to folder where your broken VM is located
  • Check what vmkfstools thinks about image
    • vmkfstools --fix check disk-s001.vmdk
  • If your image requires repairing
    • vmkfstools --fix repair disk-s001.vmdk
  • Create new disk image from old one
    • vmkfstools -i disk-s001.vmdk disk-new.vmdk
  • Add disk-new.vmdk to virtual machine and hope it works now



No comments: