VMware Communities
Room4five
Contributor
Contributor

Virtual Disk.vmdk' has one or more internal errors that cannot be fixed

I'm running VMFusion on my MacBook Pro since November 2018 with no issues and then all of a sudden had this pop up today. I need this fixed right away as I run a program for my work on it. Any help would be greatly appreciated! I've attached my log.

Thanks!

Reply
0 Kudos
17 Replies
a_p_
Leadership
Leadership

Welcome to the Community,

the log you mentioned is missing, please re-attach it.

André

Reply
0 Kudos
Room4five
Contributor
Contributor

Trying this attachment again.

Reply
0 Kudos
a_p_
Leadership
Leadership

Let's see what we can do.

As a first step I need to find out the size of the metadata in the corrupted .vmdk file.

Please run

dd if="Virtual Disk-s007.vmdk" of="Metadata1536.bin" bs=512 count=3

from the command line (in the Virtual Machines.localized/Windows 10 x64.vmwarevm folder), and attach the Metadata1536.bin file to a reply post.

Based on this, I will then ask you to run a second command to extract the complete metadata from that file.

André

Reply
0 Kudos
Room4five
Contributor
Contributor

I'm sorry to sound so dense on this matter but I don't know where to find the command line you are referring to.

Reply
0 Kudos
a_p_
Leadership
Leadership

On the MAC it's called Terminal. An easy way to open it is to use Spotlight (press Command + Space), and search for Terminal.

On the Terminal run cd "Virtual Machines.localized/Windows 10 x64.vmwarevm" which should bring you to the VM's folder.

André

Reply
0 Kudos
Room4five
Contributor
Contributor

Thank you. I was able to do this but no file was generated.

Reply
0 Kudos
a_p_
Leadership
Leadership

Can you confirm that you are in the "Windows 10 x64.vmwarevm" folder?

You may run e.g. ls -l to see whether the .vmdk files show up.

André

Reply
0 Kudos
Room4five
Contributor
Contributor

Yes, they all show up:

total 123258896

drwxr-xr-x  48 annaleetaylor  staff        1536 Jul 10 14:39 Applications

-rw-r--r--   1 annaleetaylor  staff        1536 Aug 27 12:19 Metadata1536.bin

-rw-------   1 annaleetaylor  staff  3567714304 Aug 22 23:22 Virtual Disk-s001.vmdk

-rw-------   1 annaleetaylor  staff  3798597632 Aug 22 20:00 Virtual Disk-s002.vmdk

-rw-------   1 annaleetaylor  staff  3771400192 Aug 22 20:00 Virtual Disk-s003.vmdk

-rw-------   1 annaleetaylor  staff  3608870912 Aug 22 20:00 Virtual Disk-s004.vmdk

-rw-------   1 annaleetaylor  staff  2848522240 Aug 22 20:00 Virtual Disk-s005.vmdk

-rw-------   1 annaleetaylor  staff  4201906176 Aug 22 20:00 Virtual Disk-s006.vmdk

-rw-------   1 annaleetaylor  staff  4261478400 Aug 22 12:38 Virtual Disk-s007.vmdk

-rw-------   1 annaleetaylor  staff  4261937152 Aug 22 20:00 Virtual Disk-s008.vmdk

-rw-------   1 annaleetaylor  staff  4261937152 Aug 22 09:52 Virtual Disk-s009.vmdk

-rw-------   1 annaleetaylor  staff  4261871616 Aug 22 12:38 Virtual Disk-s010.vmdk

-rw-------   1 annaleetaylor  staff  4261937152 Aug 22 09:53 Virtual Disk-s011.vmdk

-rw-------   1 annaleetaylor  staff  4261937152 Aug 22 08:39 Virtual Disk-s012.vmdk

-rw-------   1 annaleetaylor  staff  4259381248 Aug 22 09:11 Virtual Disk-s013.vmdk

-rw-------   1 annaleetaylor  staff  4261937152 Aug 22 11:31 Virtual Disk-s014.vmdk

-rw-------   1 annaleetaylor  staff  4261937152 Aug 22 20:00 Virtual Disk-s015.vmdk

-rw-------   1 annaleetaylor  staff   502398976 Aug 22 11:37 Virtual Disk-s016.vmdk

-rw-------   1 annaleetaylor  staff        1167 Aug 19 14:06 Virtual Disk.vmdk

-rw-------   1 annaleetaylor  staff  2147483648 Aug 22 20:00 Windows 10 x64-e7e49567.vmem

drwxrwxrwx   3 annaleetaylor  staff          96 Aug 19 14:06 Windows 10 x64-e7e49567.vmem.lck

-rw-------   1 annaleetaylor  staff      270840 Aug 20 12:46 Windows 10 x64.nvram

-rw-r--r--   1 annaleetaylor  staff        1003 Aug 27 12:06 Windows 10 x64.plist

-rw-r--r--   1 annaleetaylor  staff           0 Nov 16  2018 Windows 10 x64.vmsd

-rwxr-xr-x   1 annaleetaylor  staff        7036 Aug 19 16:15 Windows 10 x64.vmx

drwxrwxrwx   3 annaleetaylor  staff          96 Aug 27 11:39 Windows 10 x64.vmx.lck

-rw-r--r--   1 annaleetaylor  staff         372 May 21 14:36 Windows 10 x64.vmxf

drwxr-xr-x   7 annaleetaylor  staff         224 Nov 16  2018 appListCache

drwxr-xr-x   3 annaleetaylor  staff          96 Aug 19 14:06 caches

-rw-r--r--   1 annaleetaylor  staff           0 Aug 27 09:39 quicklook-cache.png

-rw-r--r--   1 annaleetaylor  staff      529084 Aug 19 14:06 startMenu.plist

-rw-r--r--   1 annaleetaylor  staff      120419 Aug 27 11:38 vmware-0.log

-rw-r--r--   1 annaleetaylor  staff      120417 Aug 27 11:37 vmware-1.log

-rw-r--r--   1 annaleetaylor  staff      120412 Aug 27 11:28 vmware-2.log

-rw-r--r--   1 annaleetaylor  staff      120417 Aug 27 12:04 vmware.log

AnnaLees-MacBook-Pro:Windows 10 x64.vmwarevm annaleetaylor$

Reply
0 Kudos
a_p_
Leadership
Leadership

I can see the file 😉

-rw-r--r--   1 annaleetaylor  staff        1536 Aug 27 12:19 Metadata1536.bin

André

Reply
0 Kudos
Room4five
Contributor
Contributor

How do you locate the file for me to attach? I have searched several different ways and still nothing.

Reply
0 Kudos
a_p_
Leadership
Leadership

It's in "/Users/annaleetaylor/Virtual Machines.localized/Windows 10 x64.vmwarevm". You may need to CTRL-Click the .vmwarevm package to view the contents.

André

Reply
0 Kudos
Room4five
Contributor
Contributor

Thank you...worked.

Reply
0 Kudos
a_p_
Leadership
Leadership

Great, now run the command to extract all metadata, and attach the resulting .bin file to your nest reply.

dd if="Virtual Disk-s007.vmdk" of="Metadata-w10.bin" bs=512 count=1024

André

PS: This is a good point to backup the VM (unless already done), so there's a way back if something doesn't work as expected.

Reply
0 Kudos
Room4five
Contributor
Contributor

I am traveling and have no way to back anything up for this but I only run one program in VMware Fusion and have no files in this environment.

Reply
0 Kudos
a_p_
Leadership
Leadership

I've zeroed out the duplicate entries which were reported in the log file.

Please extract "Metadata-w10.fixed" from the attached .zip archive, and store it in the VM's folder.

Then run ls -l in the VM's folder to verify that "Metadata-w10.fixed" has the exact same size as "Metadata-w10.bin"!

If that's the case, you may inject the fixed metadata into the .vmdk file.

dd if="Metadata-w10.fixed" of="Virtual Disk-s007.vmdk" bs=512 count=1024 conv=notrunc

In any case, I strongly recommend that you backup/copy at least "Virtual Disk-s007.vmdk" to some temporary folder before injecting the metadata.

André

Reply
0 Kudos
Room4five
Contributor
Contributor

Thank you so much André. This has fixed the issue and I am now up and running again.

Your help and patience is so very much appreciated. You made my day!

AnnaLee

Reply
0 Kudos
a_p_
Leadership
Leadership

I'm glad that I was able to help.

Have a great day

André

Reply
0 Kudos