VM Machine is Down

In Esxi 4.1 I have lost a virtual machine.
All that is left of this VM is a single file.

foo-flat.vmdk

I've tried to manually add the file to a new vm, but it does not appear, although when browsing the host datastore I know it is there....

Help
ehillsAsked:
Who is Participating?
 
quankenyuCommented:
you can use vmware workstation, to input the vmdk file as a vm server, then use vcenter converter to input this server from vmware workstation to your vcenter.
hope this helps.
0
 
remixedcatCommented:
have you tried recovery tools for it?
0
 
Danny McDanielClinical Systems AnalystCommented:
that is the most critical file, so there's hope...

there are two files for every disk, foo-flat.vmdk and foo.vmdk.  foo.vmdk is called the descriptor file and it is a text file that describes the foo-flat.vmdk.  it includes information like the type of disk (thin or flat), location/name and disk geometry.  If you know the size and type of disk it is supposed to be (e.g. 20GB flat) then you can create another disk (or copy the descriptor from another working vm with those same attributes), move the copied descriptor into the same folder as the -flat, rename it do foo.vmdk and then edit the descriptor with VI or nano and change the filename/location to foo-flat.vmdk.  this will have to be done at the command line.

If you've done it correctly, when you look at it in the datastore browser, you won't see foo-flat.vmdk but it will now show just foo.vmdk.

kb.vmware.com is down for maintenance right now, but when it's up, just search for "recreate vmdk descriptor" and there's a kb there that will guide you through the process.  I think it has short how-to video in it, too.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
here's the aritcle URL linlk that danm66 referred to

kb.vmware.com/kb/1002511

and also youtube video

http://www.youtube.com/watch?v=tQmZOavolPY
0
 
ehillsAuthor Commented:
For myself equipped only with esxi, and CLI I chose in the end to redeploy an existing vm and change the name.....

In the end it was easier for me.  Although I recognize that I may have problems down the line.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.