USMC74
Contributor
Contributor

Need help to retrieve a VM

Jump to solution

Hello Guys,

One of my colleague did something wrong with one VM and it's a mess now.

The VM has been renamed and removed from inventory.

The old name was SRVWINGLP01 and has been renamed to SRVLINGLP01.

The thing is, if I look in the datastore containing the VM (with the old name), the modification date for all files is around December 2013.

If I look with esxtop on the hypervisor, the VM is there and running under SRVLINGLP01.

I had access until my colleague mess around with IPtables, soooo.

No V2V with Vmware Workstation and Vcenter Converter.

Is there any way to retrieve the vmdk ?

I mean the VM is running so there might be a way to retrieve it, right ?

If someone can help, It would awesome.

Thank you.

BR,

0 Kudos
1 Solution

Accepted Solutions

Can you try to register the VM to Inventory via .VMX file?

VMware KB: Registering or adding a virtual machine to the inventory on vCenter Server or on an ESX/E...

------------------------------------------------------------------------- Follow me @ www.vmwareguruz.com Please consider marking this answer "correct" or "helpful" if you found it useful T. Sateesh VCIX-NV, VCAP 5-DCA/DCD,VCP 6-NV,VCP 5 DCV/Cloud/DT, ZCP IBM India Pvt. Ltd

View solution in original post

0 Kudos
3 Replies
USMC74
Contributor
Contributor

After some research, I think i know how to solve this.

I just need help to figure this out.

I ran this command on the ESXi : esxcli vm process list

I'm able to identify my VM : SRVLINGLP01 - Config File: /vmfs/volumes/6c518f0e-4fd4bbe3/SRVWINGLP01/SRVWINGLP01.vmx

The config file is still with the old name (normal thing I believe).

Then I ran this command : cd /vmfs/volumes/6c518f0e-4fd4bbe3/SRVWINGLP01/ && ls -la

I can see that there is a snapshot and a delta file :

1543548928      Apr  7 14:31 SRVWINGLP01-000001-delta.vmdk

325                Dec  7  2013 SRVWINGLP01-000001.vmdk

Can I merge the delta to the flat.vmdk from the CLI ?

Thanks for the help

0 Kudos

Can you try to register the VM to Inventory via .VMX file?

VMware KB: Registering or adding a virtual machine to the inventory on vCenter Server or on an ESX/E...

------------------------------------------------------------------------- Follow me @ www.vmwareguruz.com Please consider marking this answer "correct" or "helpful" if you found it useful T. Sateesh VCIX-NV, VCAP 5-DCA/DCD,VCP 6-NV,VCP 5 DCV/Cloud/DT, ZCP IBM India Pvt. Ltd
0 Kudos
USMC74
Contributor
Contributor

Hi,

Yes, that's what I finally did.

It worked, my VM is back :smileygrin:

So much pressure for one day...

Going to bed now..

Thank you for your answer.

Cheers

0 Kudos