UUID of the medium does not match the value stored in the media registry

Discussions about using Windows guests in VirtualBox.
Post Reply
Dragontamer80
Posts: 2
Joined: 26. Dec 2021, 12:22

UUID of the medium does not match the value stored in the media registry

Post by Dragontamer80 »

Hallo zusammen und frohe Feiertage,
ich dachte mir vergangene Nacht: "Achja, wenn Du schon mal hier bist und es ein Windows Update gibt, installiere es einfach mal. Also habe ich meinen Windows XP Guest heruntergefahren, Virtual Box beendet, Update angestoßen und den Host neu gestartet.
Nach dem Hochfahren des Host bot mir dann Virtualbox auch noch ein Update an und in meiner Dummheit habe ich es auch installiert. So weit so gut. Während des Installationsvorgangs kam mir dann der Gedanke, was ist, wenn die Maschine nun nicht mehr hoch fährt? ... Und so kam es.

Ich bekam folgende Fehlermeldung:

Code: Select all

UUID   {1fa8697f-299e-46b2-806e-cd6dcbbde74d} of the medium 'D:\Parkverwaltung\vmname.vmdk' 
does not match the value {0cb712ab-6f6d-4cd8-92cc-a6e1cda569b6} 
stored in the media registry
Ich habe geschlagene 2 Stunden gegoogelt und bin zu keinem Ergebnis gekommen. Daher bitte ich um Eure Hilfe.

Ausgangssituation:

Host: Windows 10
Guest: Windows XP mit komplexer Software zur Steuerung eines Parkhauses - ja ich weiß, wir hätten hier updaten und modernisieren sollen, aber das ist eine laaaange Geschichte.
Vbox ist auf C: installiert und die VMs liegen auf einer separaten Platte.

So. Ich habe nun herausgefunden, dass es Probleme gibt, wenn die VM's auf einer separaten Festplatte liegen. Dazu später mehr.

Wie kam die VM auf den "Server"?
Ich habe die physikalische Maschine mit P2V virtualisiert. Es wurden eine Menge VDMK's erzeugt (war mit neu). Ich habe das schon einige Male gemacht und es hat immer problemlos funktioniert.

Die Maschine lief seit April ohne Probleme.

Was habe ich bereits versucht / getan:
Ich bin nicht wirklich der Fachmann, aber ich denke ich kenne mich schon ganz gut aus, aber dieser Fehler ärgert mich etwas. Der Fehler meint ja, die UUID der VDisk stimmt nicht damit überein, was in der Registry hinterlegt ist. Richtig?

Also habe ich bereits versucht, die UUID zu ändern. Fehlanzeige. Mein GROSSES Problem ist der Wert uuidParentModification:

Code: Select all

--- Dumping VD Disk, Images=1
Dumping VD image "D:\Parkverwaltung\vmname.vmdk" (Backend=VMDK)
Header: Geometry PCHS=16383/16/63 LCHS=60800/255/63 cbSector=976758784
Header: uuidCreation={1fa8697f-299e-46b2-806e-cd6dcbbde74d}
Header: uuidModification={850e43d0-ef96-43a5-97e8-af425ad38661}
Header: uuidParent={1fa8697f-299e-46b2-806e-cd6dcbbde74d}
Header: uuidParentModification={00000000-0000-0000-0000-000000000000}
Hier stehen viele Nullen. Das sieht für mich nicht normal aus. Oder liege ich falsch?

Ich habe zum Test (wegen des bekannten Problems, wenn die VDisk auf einer anderen Festplatte liegt) auf C rüber kopiert. Ich erhalte dann eine andere Fehlermeldung, die mich genauso im Regen stehen lässt:

Code: Select all

Parent medium with UUID {1fa8697f-299e-46b2-806e-cd6dcbbde74d} of the medium 'C:\Users\VM-SERVER_CC1\VirtualBox VMs\ParkVerwaltung\vmname.vmdk' 
is not found in the media registry ('C:\Users\VM-SERVER_CC1\.VirtualBox\VirtualBox.xml').
Was will ich wissen?:

Im Prinzip sagt mir ja die zweite Fehlermeldung fast das gleiche: "Die VDisk passt mir nicht in den Kram, weil ich das nicht im der Registry finde".

Prima, aber wie bekomme ich hin, dass er die VDisk wieder akzeptiert. Ich bin verzweifelt und kann mir nicht mehr helfen. Ich benötige bitte die Hilfe von Euch Spezialisten. Vielleicht habt Ihr an Weihnachten ja Langeweile und löst das Problem mit einem Fingerschnipp.

Ich hoffe auch, ich habe keine Informationen vergessen - falls doch, helfe ich wo ich kann.

Grüße
Dragontamer
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: UUID of the medium does not match the value stored in the media registry

Post by scottgus1 »

First, updating Virtualbox does not damage UUID settings in the configuration files. These files (the global file Virtualbox.xml and the VMs' .vbox files) aren't touched during a Virtualbox update. So the update didn't cause this problem.

Also, it's perfectly OK to have a VM on a separate disk. If you have questions about this you can start a new topic.

However, it is possible that a glitch happened during the shutdown of the VM. Virtualbox reads all its configuration files at the start of the first Virtualbox process and stores all the info in memory for as long as any Virtualbox process is running. Any changes to UUIDs made because of changes to the VM's settings will be held in memory and might be written to the config files. Then, at any time during the operation of the VMs or at the end of all Virtualbox processes, Virtualbox will rename all the config files with a '-prev' suffix on the extension, and write out new config files. If a host glitch happens, it could be possible old data doesn't get overwritten.

So, it's always possible, if the VM complains of something like this, to rename the existing .vbox config file to another name or suffix, then copy the -prev backup, rename the copy to the original name, then start again.

It is also possible to restore the .vbox file from your regular host backups, especially if you are sure you made no settings changes to the VM and took no new snapshots.

Unfortunately, all the changing of UUIDs etc has no doubt undone these easy recovery methods. We don't know what was in there before and can't match up what is there now.

The easiest way to fix this all is to pull the whole VM folder and all VM disk files from your host backups, unregister the VM and disk files you have now, register the restored VM, then restore the backed-up data within the VM that has changed since the backup.

If you don't have backups ( :shock: ) and if your VM had no snapshots, you might be able to fix this by:
  1. take a good restorable backup of the VM now.
  2. take good note of which disk file attaches to which port of which disk controller in the VM's Storage settings
  3. open the Virtual Media Manager in the main Virtualbox window's File menu, and release/remove all the drive files for the VM so they don't show in the Media Manager anymore. Be EXTREMELY careful not to delete the disk files (though if you do you can restore them from the backup).
  4. in the VM's Storage settings, add each disk file back to the correct controller and port.
  5. fire up the VM and see what happens.
If your VM had snapshots, that could complicate things considerably. Like Princess Leia relied on Obi-Wan, you'd have to go, "Backups, you're my only hope!"

We could look at the VM's .vbox and .vbox-prev files and an output of 'vboxmanage showmediuminfo' for each disk file the VM has. Please zip the files and post using the forum's Upload Attachment tab. Provide the 'vboxmanage showmediuminfo' outputs as text on the forum.
Dragontamer80
Posts: 2
Joined: 26. Dec 2021, 12:22

Re: UUID of the medium does not match the value stored in the media registry

Post by Dragontamer80 »

Thanks for your post. The solution was as simpel as ….
I set the parent uuid to {00000000-0000-0000-0000-000000000000} - after that it works.

I found the anwer in my backup. I dumped the information of the VM and see, that the original file has this uuid, too.

Thanks for your help!!
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: UUID of the medium does not match the value stored in the media registry

Post by scottgus1 »

Glad you found a solution!
Post Reply