It's the end of 2019 and this is still a thing.
I created a vhd with disk2vhd, set up a VM, crated snapshot of VM, started VM, parent UUID error.
Deleted VM.
Created new VM with vdi, starts fine.
Set vhd to immutable in media manager, added it to new VM, VM doesn't start, hangs, without displaying any error.
In settings/Storage there is a yellow exclamation mark with hover text of parent UUID error.
Thanks to Google I found this thread, and
VBoxManage.exe internalcommands dumphdinfo,
VBoxManage.exe internalcommands sethdparentuuid did solve my problem.
But because the snapshot has autoReset, it fucks up the parent UUID every time, and have to run the fix before starting the VM every time.
in %userprofile%\.VirtualBox\VirtualBox.xml
Code: Select all
<HardDisk uuid="{9183fee5-d222-4e3f-9597-2295f7ebf48a}" location="*path to parent*.VHD" format="VHD" type="Immutable">
<HardDisk uuid="{b234c7ad-6b0f-4381-9c96-3d327b393d44}" location="*path to vm*/Snapshots/{b234c7ad-6b0f-4381-9c96-3d327b393d44}.vhd" format="VHD" autoReset="true"/>
</HardDisk>
Note: You don't need the dumphdinfo to find out the parent UUID because it's in the xml, it was read correctly, it's just not set when creating the snapshot disk image.