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

then i have to fix my backups and figure out why they weren't running!

0 Kudos
scott28tt
VMware Employee
VMware Employee

What makes you say it is corrupt?

What errors do you get?

Look inside the VM package and post a file listing.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
msgreenf
Contributor
Contributor

Screenshot attached of error

0 Kudos
msgreenf
Contributor
Contributor

and vm log

0 Kudos
a_p_
Leadership
Leadership

That's strange, the error message shows "Windows 7 x64-s013.vmdk" as being inconsistent, but the log files lists errors for "Windows 7 x64-s025.vmdk". To get a better overview, please extract the folder with the VM's files from the log bundle, compress/zip it and attach the .zip archive to your next reply. This will provide an overview of files, file sizes etc, that's needed for the next steps.

André

0 Kudos
msgreenf
Contributor
Contributor

0 Kudos
msgreenf
Contributor
Contributor

do you want the actual VM? its 52GB...
0 Kudos
scott28tt
VMware Employee
VMware Employee

I think a detailed file listing is what was requested (which I also suggested in my previous reply), you don't need to post or share the actual VM files.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
msgreenf
Contributor
Contributor

screenshot

0 Kudos
a_p_
Leadership
Leadership

I actually thought of the VM's folder from within the log bundle, i.e. the metadata files without the user data (-s00x.vmdk) files. Anyway, what should be sufficient after seeing the screenshot, is the "Windows7 x64.vmdk". Either compress/zip this file, and attach it to your next reply, or simply post its contents.

André

0 Kudos
msgreenf
Contributor
Contributor

Here you go

0 Kudos
msgreenf
Contributor
Contributor

any thoughts?

0 Kudos
a_p_
Leadership
Leadership

Nice! A VM created with an old VMware Fusion version and resized a couple of times with a new version.

Assuming that only the two .vmdk files mentioned so far have issues, please run the below mentioned commands to extract the files' metadata. Then compress/zip the two .bin files, and attach them to your next reply. In addition to this I need the two .vmdk files' exact size in Bytes (e.g. the output of ls -l).

The command to run from within the VM's folders:
dd if="Windows 7 x64-s013.vmdk" of="Metadata-013.bin" bs=512 count=640
dd if="Windows 7 x64-s025.vmdk" of="Metadata-025.bin" bs=512 count=1024

André

0 Kudos
Mikero
Community Manager
Community Manager

*popcorn.gif*

-
Michael Roy - Product Marketing Engineer: VCF
0 Kudos
msgreenf
Contributor
Contributor

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

total 111940576

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

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

-rw-------@  1 msgreenf  staff  2141585408 Jun 29 15:22 Windows 7 x64-s001.vmdk

-rw-------@  1 msgreenf  staff  2140995584 Jun 29 15:22 Windows 7 x64-s002.vmdk

-rw-------@  1 msgreenf  staff  2103181312 Jun 29 15:22 Windows 7 x64-s003.vmdk

-rw-------@  1 msgreenf  staff  2115895296 Jun 29 15:22 Windows 7 x64-s004.vmdk

-rw-------@  1 msgreenf  staff  2123235328 Jun 29 15:22 Windows 7 x64-s005.vmdk

-rw-------@  1 msgreenf  staff  2115895296 Jun 29 15:22 Windows 7 x64-s006.vmdk

-rw-------@  1 msgreenf  staff  2142633984 Jun 29 15:22 Windows 7 x64-s007.vmdk

-rw-------@  1 msgreenf  staff  2103508992 Jun 29 15:22 Windows 7 x64-s008.vmdk

-rw-------@  1 msgreenf  staff  2107834368 Jun 29 15:16 Windows 7 x64-s009.vmdk

-rw-------@  1 msgreenf  staff  2121465856 Jun 29 15:21 Windows 7 x64-s010.vmdk

-rw-------@  1 msgreenf  staff  2109341696 Jun 29 15:22 Windows 7 x64-s011.vmdk

-rw-------@  1 msgreenf  staff  2091253760 Jun 29 15:22 Windows 7 x64-s012.vmdk

-rw-------@  1 msgreenf  staff  1773469696 Jun 29 15:22 Windows 7 x64-s013.vmdk

-rw-------@  1 msgreenf  staff  2029256704 Jun 29 15:22 Windows 7 x64-s014.vmdk

-rw-------@  1 msgreenf  staff  1989541888 Jun 29 15:22 Windows 7 x64-s015.vmdk

-rw-------@  1 msgreenf  staff  2052915200 Jun 29 15:21 Windows 7 x64-s016.vmdk

-rw-------@  1 msgreenf  staff  2047737856 Jun 29 15:22 Windows 7 x64-s017.vmdk

-rw-------@  1 msgreenf  staff  1968766976 Jun 29 15:22 Windows 7 x64-s018.vmdk

-rw-------@  1 msgreenf  staff  1990656000 Jun 29 15:22 Windows 7 x64-s019.vmdk

-rw-------@  1 msgreenf  staff  2089353216 Jun 29 15:22 Windows 7 x64-s020.vmdk

-rw-------@  1 msgreenf  staff    19070976 Jun 29 15:14 Windows 7 x64-s021.vmdk

-rw-------   1 msgreenf  staff  4029087744 Jun 29 15:22 Windows 7 x64-s022.vmdk

-rw-------   1 msgreenf  staff  2821783552 Jun 29 15:22 Windows 7 x64-s023.vmdk

-rw-------   1 msgreenf  staff  1197801472 Jun 29 15:22 Windows 7 x64-s024.vmdk

-rw-------   1 msgreenf  staff  1028718592 Jun 29 15:22 Windows 7 x64-s025.vmdk

-rw-------   1 msgreenf  staff  1375666176 Jun 29 15:22 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 Jun 29 15:21 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        1527 Jun 30 13:42 Windows 7 x64.plist

-rw-------@  1 msgreenf  staff        1973 Jun 29 15:15 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 Jun 29 15:22 Windows 7 x64.vmx

drwxrwxrwx   3 msgreenf  staff          96 Jun 29 05:11 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       92252 Jun 29 06:32 mksSandbox-0.log

-rw-r-----   1 msgreenf  staff      168524 Jun 29 06:25 mksSandbox-1.log

-rw-r-----   1 msgreenf  staff      168524 Jun 29 06:11 mksSandbox-2.log

-rw-r-----   1 msgreenf  staff       92258 Jun 29 15:22 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 Jun 29 15:22 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      396148 Jun 29 06:32 vmware-0.log

-rw-r--r--   1 msgreenf  staff      455877 Jun 29 06:25 vmware-1.log

-rw-r--r--   1 msgreenf  staff     1058529 Jun 29 06:11 vmware-2.log

-rw-r--r--@  1 msgreenf  staff      415128 Jun 29 15:22 vmware.log

0 Kudos
msgreenf
Contributor
Contributor

Thank you so much for your help! Attached is the metadata

0 Kudos
a_p_
Leadership
Leadership

I have no idea what may have caused this, but parts of the metadata were overwritten by binary zeroes, 8kb in one file and ~4kb in the other one. I was able to fix the metadata, but I'm neither sure whether other parts of the files have also been overwritten, nor whether other files are affected too. Therefore, please ensure that you backup all the current files before taking any action!!!

Once backed up, extract the two files from the attached .zip archive into the VM's folder, and inject the data into the two corrupted .vmdk files using the following commands.

dd if="Metadata-013-fixed.bin" of="Windows 7 x64-s013.vmdk" bs=512 count=640 conv=notrunc
dd if="Metadata-025-fixed.bin" of="Windows 7 x64-s025.vmdk" bs=512 count=1024 conv=notrunc

André

0 Kudos
msgreenf
Contributor
Contributor

vm boots but it's still not right start menu doesn't open for example.  Anything else to try?

Tags (1)
0 Kudos
msgreenf
Contributor
Contributor

Is there another kind of report I can generate for you?  Is there maybe a different corrupt file?

 

The all happened when i was booting a VM and my mac BSOD.

0 Kudos