VMware Communities
msgreenf
Contributor
Contributor

VM Repair

I have a corrupt VM and I was wondering if anyone on the forum would be able to help me repair it?

Log files - https://1drv.ms/u/s!AjlPKu70xbLAhr1P4xACu_CEdaYeeA?e=gvwxw0 

0 Kudos
35 Replies
msgreenf
Contributor
Contributor

now it won't boot at all - i was going to deactivate windows and re-use the license key to start fresh...

0 Kudos
a_p_
Leadership
Leadership

Sorry, but I can only help you with fixing metadata, but not with user data.
If user content within the virtual disk got corrupted due to the host/MAC crash, you need to try and recover this as you would do this on a physical machine, i.e. use e.g. 3rd party recovery tools.

The benefit of using a VM in this case is that you don't need to boot into the guest OS, but can try the recovery by mounting the virtual disk to another guest, and - with a backup of the VM's files in place - you can revert to the current state in case something becomes worse during recovery.

André

0 Kudos
a_p_
Leadership
Leadership

Oops, I somehow missed your latest post, that you likely posted while I was replying to the previous one.

If you want me to check all of the .vmdk files, then let me know, and post a current file listing (ls -l).

André

 

0 Kudos
msgreenf
Contributor
Contributor

Andre,

first THANK YOU so much!

 

msgreenf@ghctimPro Windows 7 x64.vmwarevm % ls -l

total 113057848

drwxr-xr-x  98 msgreenf  staff        3136 Sep 22  2019 Applications

-rwxr-xr-x@  1 msgreenf  staff      327680 Jul  2 21:55 Metadata-013-fixed.bin

-rwxr-xr-x@  1 msgreenf  staff      524288 Jul  2 22:03 Metadata-025-fixed.bin

-rw-------   1 msgreenf  staff  4294967296 May  1  2019 Windows 7 x64-e7073f40.vmem

-rw-------@  1 msgreenf  staff  2141782016 Jul  2 20:55 Windows 7 x64-s001.vmdk

-rw-------@  1 msgreenf  staff  2142765056 Jul  2 20:55 Windows 7 x64-s002.vmdk

-rw-------@  1 msgreenf  staff  2108030976 Jul  2 20:55 Windows 7 x64-s003.vmdk

-rw-------@  1 msgreenf  staff  2121203712 Jul  2 20:55 Windows 7 x64-s004.vmdk

-rw-------@  1 msgreenf  staff  2138505216 Jul  2 20:55 Windows 7 x64-s005.vmdk

-rw-------@  1 msgreenf  staff  2131689472 Jul  2 20:55 Windows 7 x64-s006.vmdk

-rw-------@  1 msgreenf  staff  2145320960 Jul  2 20:55 Windows 7 x64-s007.vmdk

-rw-------@  1 msgreenf  staff  2135556096 Jul  2 20:55 Windows 7 x64-s008.vmdk

-rw-------@  1 msgreenf  staff  2123628544 Jul  2 20:55 Windows 7 x64-s009.vmdk

-rw-------@  1 msgreenf  staff  2132213760 Jul  2 20:55 Windows 7 x64-s010.vmdk

-rw-------@  1 msgreenf  staff  2125725696 Jul  2 20:55 Windows 7 x64-s011.vmdk

-rw-------@  1 msgreenf  staff  2119696384 Jul  2 20:55 Windows 7 x64-s012.vmdk

-rw-------@  1 msgreenf  staff  1785397248 Jul  2 20:55 Windows 7 x64-s013.vmdk

-rw-------@  1 msgreenf  staff  2045771776 Jul  2 20:55 Windows 7 x64-s014.vmdk

-rw-------@  1 msgreenf  staff  2080505856 Jul  2 20:55 Windows 7 x64-s015.vmdk

-rw-------@  1 msgreenf  staff  2075721728 Jul  2 20:55 Windows 7 x64-s016.vmdk

-rw-------@  1 msgreenf  staff  2067398656 Jul  2 20:55 Windows 7 x64-s017.vmdk

-rw-------@  1 msgreenf  staff  1993408512 Jul  2 20:55 Windows 7 x64-s018.vmdk

-rw-------@  1 msgreenf  staff  2010644480 Jul  2 20:55 Windows 7 x64-s019.vmdk

-rw-------@  1 msgreenf  staff  2101149696 Jul  2 20:55 Windows 7 x64-s020.vmdk

-rw-------@  1 msgreenf  staff    21037056 Jul  2 20:55 Windows 7 x64-s021.vmdk

-rw-------   1 msgreenf  staff  4084400128 Jul  2 20:55 Windows 7 x64-s022.vmdk

-rw-------   1 msgreenf  staff  2897477632 Jul  2 20:55 Windows 7 x64-s023.vmdk

-rw-------   1 msgreenf  staff  1282605056 Jul  2 20:55 Windows 7 x64-s024.vmdk

-rw-------   1 msgreenf  staff  1042153472 Jul  2 20:55 Windows 7 x64-s025.vmdk

-rw-------   1 msgreenf  staff  1386151936 Jul  2 20:55 Windows 7 x64-s026.vmdk

-rw-------   1 msgreenf  staff      524288 Jun 28 16:42 Windows 7 x64-s027.vmdk

-rw-------   1 msgreenf  staff      524288 Jun 28 16:42 Windows 7 x64-s028.vmdk

-rw-------   1 msgreenf  staff      524288 Oct 25  2018 Windows 7 x64-s029.vmdk

-rw-------   1 msgreenf  staff       65536 Oct 25  2018 Windows 7 x64-s030.vmdk

-rw-------   1 msgreenf  staff      524288 May 27  2020 Windows 7 x64-s031.vmdk

-rw-------   1 msgreenf  staff      524288 May 27  2020 Windows 7 x64-s032.vmdk

-rw-------   1 msgreenf  staff   475594752 Jul  2 20:55 Windows 7 x64-s033.vmdk

-rw-------   1 msgreenf  staff      196608 Jun 29 15:15 Windows 7 x64-s034.vmdk

-rw-------@  1 msgreenf  staff        8684 Jun 29 05:52 Windows 7 x64.nvram

-rw-r--r--   1 msgreenf  staff        1526 Jul  3 05:47 Windows 7 x64.plist

-rw-------   1 msgreenf  staff        1973 Jul  2 20:44 Windows 7 x64.vmdk

-rw-r--r--   1 msgreenf  staff          67 Jun 29 15:09 Windows 7 x64.vmsd

-rwxr-xr-x   1 msgreenf  staff        7816 Jul  2 20:55 Windows 7 x64.vmx

drwxrwxrwx   3 msgreenf  staff          96 Jul  3 05:49 Windows 7 x64.vmx.lck

-rw-r--r--@  1 msgreenf  staff        4155 May 20 06:26 Windows 7 x64.vmxf

drwxr-xr-x   7 msgreenf  staff         224 Jul 17  2011 appListCache

drwxr-xr-x   3 msgreenf  staff          96 Apr  5 19:31 caches

-rw-r-----   1 msgreenf  staff       92263 Jul  3 05:47 mksSandbox-0.log

-rw-r-----   1 msgreenf  staff       92263 Jul  3 05:46 mksSandbox-1.log

-rw-r-----   1 msgreenf  staff       92263 Jul  2 20:55 mksSandbox-2.log

-rw-r-----   1 msgreenf  staff       92263 Jul  3 05:49 mksSandbox.log

-rw-r--r--   1 msgreenf  staff           0 Mar 25  2020 quicklook-cache.png

drwxr-xr-x   3 msgreenf  staff          96 Jul  9  2011 screenshotsCache

-rw-r--r--   1 msgreenf  staff      900635 Jul  2 20:55 startMenu.plist

-rw-r--r--   1 msgreenf  staff     6577382 Sep 24  2011 vmmcores-4.gz

-rw-------   1 msgreenf  staff     8272619 Feb 11  2020 vmmcores-5.gz

-rw-r--r--   1 msgreenf  staff    29411277 Jul  3 05:47 vmware-0.log

-rw-r--r--   1 msgreenf  staff    29411277 Jul  3 05:46 vmware-1.log

-rw-r--r--   1 msgreenf  staff      442786 Jul  2 20:55 vmware-2.log

-rw-r--r--   1 msgreenf  staff    29411276 Jul  3 05:49 vmware.log

0 Kudos
a_p_
Leadership
Leadership

Below the commands to extract the metadata from all .vmdk files.

dd if="Windows 7 x64-s001.vmdk" of="Metadata-s001.bin" bs=512 count=640
dd if="Windows 7 x64-s002.vmdk" of="Metadata-s002.bin" bs=512 count=640
dd if="Windows 7 x64-s003.vmdk" of="Metadata-s003.bin" bs=512 count=640
dd if="Windows 7 x64-s004.vmdk" of="Metadata-s004.bin" bs=512 count=640
dd if="Windows 7 x64-s005.vmdk" of="Metadata-s005.bin" bs=512 count=640
dd if="Windows 7 x64-s006.vmdk" of="Metadata-s006.bin" bs=512 count=640
dd if="Windows 7 x64-s007.vmdk" of="Metadata-s007.bin" bs=512 count=640
dd if="Windows 7 x64-s008.vmdk" of="Metadata-s008.bin" bs=512 count=640
dd if="Windows 7 x64-s009.vmdk" of="Metadata-s009.bin" bs=512 count=640
dd if="Windows 7 x64-s010.vmdk" of="Metadata-s010.bin" bs=512 count=640
dd if="Windows 7 x64-s011.vmdk" of="Metadata-s011.bin" bs=512 count=640
dd if="Windows 7 x64-s012.vmdk" of="Metadata-s012.bin" bs=512 count=640
dd if="Windows 7 x64-s013.vmdk" of="Metadata-s013.bin" bs=512 count=640
dd if="Windows 7 x64-s014.vmdk" of="Metadata-s014.bin" bs=512 count=640
dd if="Windows 7 x64-s015.vmdk" of="Metadata-s015.bin" bs=512 count=640
dd if="Windows 7 x64-s016.vmdk" of="Metadata-s016.bin" bs=512 count=640
dd if="Windows 7 x64-s017.vmdk" of="Metadata-s017.bin" bs=512 count=640
dd if="Windows 7 x64-s018.vmdk" of="Metadata-s018.bin" bs=512 count=640
dd if="Windows 7 x64-s019.vmdk" of="Metadata-s019.bin" bs=512 count=640
dd if="Windows 7 x64-s020.vmdk" of="Metadata-s020.bin" bs=512 count=640
dd if="Windows 7 x64-s021.vmdk" of="Metadata-s021.bin" bs=512 count=256
dd if="Windows 7 x64-s022.vmdk" of="Metadata-s022.bin" bs=512 count=1024
dd if="Windows 7 x64-s023.vmdk" of="Metadata-s023.bin" bs=512 count=1024
dd if="Windows 7 x64-s024.vmdk" of="Metadata-s024.bin" bs=512 count=640
dd if="Windows 7 x64-s025.vmdk" of="Metadata-s025.bin" bs=512 count=1024
dd if="Windows 7 x64-s026.vmdk" of="Metadata-s026.bin" bs=512 count=1024
dd if="Windows 7 x64-s027.vmdk" of="Metadata-s027.bin" bs=512 count=1024
dd if="Windows 7 x64-s028.vmdk" of="Metadata-s028.bin" bs=512 count=1024
dd if="Windows 7 x64-s029.vmdk" of="Metadata-s029.bin" bs=512 count=1024
dd if="Windows 7 x64-s030.vmdk" of="Metadata-s030.bin" bs=512 count=128
dd if="Windows 7 x64-s031.vmdk" of="Metadata-s031.bin" bs=512 count=1024
dd if="Windows 7 x64-s032.vmdk" of="Metadata-s032.bin" bs=512 count=1024
dd if="Windows 7 x64-s033.vmdk" of="Metadata-s033.bin" bs=512 count=384
dd if="Windows 7 x64-s034.vmdk" of="Metadata-s034.bin" bs=512 count=384

André

0 Kudos
msgreenf
Contributor
Contributor

THANK YOU AGAIN!

0 Kudos
a_p_
Leadership
Leadership

Here we go. Due to the huge number of errors, I had to make some 50:50 decisions, because of duplication pointers, so expect some file system issues. If you cannot boot the VM (often the case with issues in the first sparse file), I'd suggest that you attach the VM's virtual disk to a helper VM, and extract/backup important data this way.

dd if="Metadata-s001-fixed.bin" of="Windows 7 x64-s001.vmdk" bs=512 count=640 conv=notrunc
dd if="Metadata-s012-fixed.bin" of="Windows 7 x64-s012.vmdk" bs=512 count=640 conv=notrunc
dd if="Metadata-s014-fixed.bin" of="Windows 7 x64-s014.vmdk" bs=512 count=640 conv=notrunc
dd if="Metadata-s019-fixed.bin" of="Windows 7 x64-s019.vmdk" bs=512 count=640 conv=notrunc
dd if="Metadata-s023-fixed.bin" of="Windows 7 x64-s023.vmdk" bs=512 count=1024 conv=notrunc
dd if="Metadata-s024-fixed.bin" of="Windows 7 x64-s024.vmdk" bs=512 count=640 conv=notrunc

André

0 Kudos
msgreenf
Contributor
Contributor

getting an OS not found error now...

0 Kudos
msgreenf
Contributor
Contributor

I tried to take my backup and mount it also - using these instructions and it's not showing up in windows

 

https://kb.vmware.com/s/article/2005146#:~:text=Fusion%204.&text=To%20add%20an%20existing%20virtual%....

0 Kudos
msgreenf
Contributor
Contributor

got it to attach but even my new VM won't boot with that virtual disk attached

0 Kudos
msgreenf
Contributor
Contributor

i just really need 1 folder off the VM....

Tags (1)
0 Kudos
a_p_
Leadership
Leadership

>>> got it to attach but even my new VM won't boot with that virtual disk attached

That's strange. Did you attach the virtual disk as a secondary virtual disk, i.e. leaving the new VM's OS disk in place?

André

0 Kudos
msgreenf
Contributor
Contributor

0 Kudos
msgreenf
Contributor
Contributor

I literally just need 1 xml config file from the VM. 

0 Kudos
msgreenf
Contributor
Contributor

Andre,

 

great news I found a 3 week old backup, restored from that and found the 1 file I needed.  Mounted the drive and copied to the new VM!

I am going to use the new VM since it should be much more stable but I REALLY appreciate your help.

Please let me know how I can send you a coffee to say thank you!

0 Kudos
a_p_
Leadership
Leadership

Great to see that you were able to get the required data.
Thanks for the kind offer. There's no need for this, your thanks is enough for me. I'm glad that I could at least try to help.
Have a great weekend.

André

0 Kudos