4 Replies Latest reply on Oct 1, 2011 3:12 PM by HIkkaduwa

    need to recreate a descriptor from scratch but still have the *-flat.vmdk ?

    continuum Guru
    vExpertCommunity Warriors

      Occasionally ESX VMs crash in such a way that the descriptor file of a vmdk gets lost.

      If you ever need to recreate a descriptor from scratch but still have the *-flat.vmdk this little tool may come handy.

       

      Tool asks for a flat-file - like used by ESX 3 and Workstation.

       

      It ignores the CID and uses a bogus one.

       

      Output is named "newdescriptor.vmdk" - rename as needed.

      Doesn't work for disks smaller than 1 Gb at the moment

       

       

       

       

       

      http://sanbarrow.com/moa23/files/oh_dear_I_lost_my_descriptor.zip

       

       

       

      This is a very very simple autoit script - it just takes the size of the *-flat.vmdk as an argument and spits out disk-geometry values like used by VMware.

      You can also try it against any dd-image - but this tool is so simple that you would need to rename the dd-image to something-flat.vmdk The other entries in the descriptor simply use some standard entries - edit as you see fit.

       

      Feature requests welcome

      ___________________________________

       

      description of vmx-parameters: http://sanbarrow.com/vmx.html

      VMware-liveCD: http://sanbarrow.com/moa.html