we need to recreate disk descriptor file when we missing that file or sometimes when we moved vm to the new location.In My case I got a this error.

image

 

I have logged using putty and I noticed that there is no vmdk file only the data file(flat) is available

 

image

What I can do now?

I have to recreate descriptor file now. To do this first I have to identify the disk details using vmx file. I can download this to my local pc and open it from text editor.

image

now I can identify the flat file size using ls –l command

image

Now I’m going to create new virtual disk file(temporary disk).vmkfstools can be use for this purpose

image

now we can remove the Temp-flat.vmdk using rm -i

image

Rename the Temp.vmdk to myvm.vmdk

image

now we have to edit descriptor file using vi text editor

 

image

now my vm is power up and hdd is there

image

Advertisements