Opened 14 years ago
Closed 14 years ago
#8648 closed defect (duplicate)
Restore snapshot produces inconsistent uuids across VirtualBox.xml / MyMachine.xml
Reported by: | Tikitu de Jager | Owned by: | |
---|---|---|---|
Component: | GUI | Version: | VirtualBox 4.0.4 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
After restoring a snapshot from the GUI (where Current State is not identical to the snapshot), MyMachine.xml contains an <Image uuid="{}"> tag but the uuid it references does not occur in VirtualBox.xml. (A vmdk file with the corresponding name is created in the Snapshots directory.)
This produces the error reported in ticket 8595, when VirtualBox next starts up.
(In fact the VirtualBox.xml file is not changed at all; I don't know whether the correct behaviour would be to write the new uuid through to the media registry or to not change it in the machine's own config file, but they certainly shouldn't be getting out of synch.)
Attached files: {VirtualBox,BasicUbuntuInstall}.shutdown.xml are the files after I've shut the machine down and exited VirtualBox; .shutdown-restore.xml are from starting the GUI again, restoring the previous snapshot, and exiting the GUI. (Also a logfile is attached, perhaps you'll make more of it than I did.)
My details: Host Ubuntu 10.04.2 64-bit, Debian package virtualbox-4.0 (4.0.4-70112~Ubuntu~lucid); guest Ubuntu server. (Not setting properties because I doubt it's relevant -- I've seen forum posts from windows users with apparently the same issue.)
Attachments (5)
Change History (8)
by , 14 years ago
Attachment: | BasicUbuntuInstall.shutdown.xml added |
---|
by , 14 years ago
Attachment: | VirtualBox.shutdown.xml added |
---|
VirtualBox config after shutting down machine (current state changed)
by , 14 years ago
Attachment: | BasicUbuntuInstall.shutdown-restore.xml added |
---|
Machine's config file after restoring snapshot
by , 14 years ago
Attachment: | VirtualBox.shutdown-restore.xml added |
---|
VirtualBox config after restoring snapshot
by , 14 years ago
comment:1 by , 14 years ago
NB: If you restore a snapshot when the current state hasn't changed, nothing goes wrong: a new uuid appears in both config files and everything stays in synch.
comment:2 by , 14 years ago
I can confirm this bug, in fact I came here just to report it.
VirtualBox version: 4.0.4 My host is Windows 7 64-bit, guests are XP and Kubuntu, happens for both.
This has started in version 4.0, I think, never saw it in 3.x. What I see is: After restoring the snapshot, everything looks normal, going into device manager shows the correct disks, no phantoms. Only after shutting down and restarting will the old (now deleted) disk show up, which VBox obviously can't find.
This happens, whether I kill the WM from the VM shutdown menu (with 'revert' checked) or I manually revert after the VM has been shut down.
I read somewhere, that the VBox service is shutting down a few seconds after the GUI, is it that service creating the ghost entries?
Anyway, this is of course mainly annoying, since I can manually remove the entries from the device manager, but would nice to have it fixed.
Machine's config file after shutting down (current state changed)