How to recreating a missing virtual machine disk descriptor file

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.