Internal commands does not work.

Discussions related to using VirtualBox on Windows hosts.
Post Reply
senthuis
Posts: 2
Joined: 21. Mar 2023, 12:42

Internal commands does not work.

Post by senthuis »

Hi,
I have deleted one of the old snapshots and centos vm does not boot now as it is recorded as its child. So i m trying to change parent uuid of a latest snapshot to the base vdi so that base vdi can load that.
I have base vdi with uuid 4b8b0741-4a09-45ad-90ae-6ce026fee11b, Snanpshot1 vdi with UUID ceea6c12-9b90-4ba5-840c-03c8bcc32a61(I removed this to save space with out knowing how VM works), snapshot2 vdi with uuid fc96ab12-26f4-4b18-9bea-f93967d708e9. I m trying to change snapshot2's parent to base vdi and snapshot2's uuid to snapshot1.'

4b8b0741-4a09-45ad-90ae-6ce026fee11b
ceea6c12-9b90-4ba5-840c-03c8bcc32a61
fc96ab12-26f4-4b18-9bea-f93967d708e9 I m trying to change the UUID to ceea6c12-9b90-4ba5-840c-03c8bcc32a61 and its parent UUID to 4b8b0741-4a09-45ad-90ae-6ce026fee11b such that tree becomes

4b8b0741-4a09-45ad-90ae-6ce026fee11b
ceea6c12-9b90-4ba5-840c-03c8bcc32a61

But i can not change parent uuid of snapshot vdi though the internal command says it has changed it.
[img]
setParentUUID.JPG
setParentUUID.JPG (89.22 KiB) Viewed 487 times
[/img]

Neither i can change the uuid of the snapshot.
[img]
setUUID.JPG
setUUID.JPG (89.12 KiB) Viewed 487 times
[/img].

Please let me know if i m missing something.

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

Re: Internal commands does not work.

Post by scottgus1 »

senthuis wrote:I have deleted one of the old snapshots
How? Through Virtualbox's Snapshot Delete command? Or by deleting the actual file in Windows?

The first way was correct and should have worked, barring host glitches. The second way has borked your VM.

BTW, your PC account username is not a hackable piece of information and does not need to be obfuscated unless the text is an open admission of committing a crime.
senthuis
Posts: 2
Joined: 21. Mar 2023, 12:42

Re: Internal commands does not work.

Post by senthuis »

I deleted the file in windows.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Internal commands does not work.

Post by scottgus1 »

OK, so your VM is likely hosed. Each snapshot is part of a chain that needs to be in place for the VM to run.

You'll need to restore from your backups. Even if your idea above works, data is very likely to be missing.

That said, a forum guru with experience changing UUIDs may come along and try to sort this out. But don't have any hope of the VM's data still being accurate.
Post Reply