Ticket #5137 (closed defect: fixed)
|Reported by:||mduft||Owned by:|
I now spent a few days hacking back together the media registry... I rebooted my machine, and - oops - the file was back to a version about 2 weeks ago (!!!). i suspect that the problem was that i was running one VM in headless mode (as service), and others through the gui. my suspicion is that the headless vm wrote back VirtualBox.xml, overwriting the intermediate changes... this was really BAD!
onther thing i'd suggest, is that the media registry structure should be pretty much different:
there should be no need to keep all snapshots of harddisks in the media registry; why not do it like all others, and make each snapshot know it's "parent". this way, onlye the VM itself would need to know the "top-most" disk attached to the VM. This would also ease the implementation of the enhancement ticket i just filed (#5136).
Also it seems that if during creation of a snapshot an ISO image is mounted, and the ISO is removed from disk afterwards, the media registry refuses to remove the file from the registry - seems like a snapshot wanting this file locks it somehow...