VirtualBox UUID does not match


Here is a tutorial how to fix VirtualBox UUID does not match error usually received when you simply just copy VirtualBox machine from one server to another.

I had this problem when one of my servers failed and i removed the hard drive, recovered my machine files and simply copied them on another server.

When starting the machine i got UUID does not march error:

UUID {52d48779-a701-4ed3-819c-6b49bb31c3d0} of the medium ‘/home/vbox/VirtualBox VMs/Windows2008/Windows2008.vdi’ does not match the value {a4f76af1-0534-41d4-9087-90601c845c94} stored in the media registry (‘/home/vbox/.config/VirtualBox/VirtualBox.xml’)

You need to execute this command from the user that is running the VirtualBox machines NOT root, in my case it’s vbox

Check which drive and notice the State is inaccessible:

VBoxManage showhdinfo Windows2008/Windows2008.vdi

Output:

UUID: a4f76af1-0534-41d4-9087-90601c845c94
Parent UUID: base
State: inaccessible
Access Error: UUID {52d48779-a701-4ed3-819c-6b49bb31c3d0} of the medium '/home/vbox/VirtualBox VMs/Windows2008/Windows2008.vdi' does not match the value {a4f76af1-0534-41d4-9087-90601c845c94} stored in the media registry ('/home/vbox/.config/VirtualBox/VirtualBox.xml')
Type: normal (base)
Location: /home/vbox/VirtualBox VMs/Windows2008/Windows2008.vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 25600 MBytes
Size on disk: 2 MBytes
In use by VMs: Windows2008 (UUID: 675ccaa4-250b-4408-a6ea-164388ea9fd8)

The solution is to detach the drive, clone it and reattach it again.

VBoxManage storageattach Windows2008 --storagectl "SATA" --port 0 --device 0 --medium none
VBoxManage closemedium disk Windows2008/Windows2008.vdi
VBoxManage storageattach Windows2008 --storagectl "SATA" --port 0 --device 0 --type hdd --medium Windows2008/Windows2008.vdi

If you are using SCSI Controller and not SATA, change the storagecrl part to “SCSI Controller”

VBoxManage storageattach Windows2008 --storagectl "SCSI Controller" --port 0 --device 0 --medium none
VBoxManage closemedium disk Windows2008/Windows2008.vdi
VBoxManage storageattach Windows2008 --storagectl "SCSI Controller" --port 0 --device 0 --type hdd --medium Windows2008/Windows2008.vdi

You can now start your machine without problem.

VirtualBoxhttps://www.virtualbox.org/



Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Advertisement