VirtualBox Error - failed to load session for thee virtual machine XUbuntu

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Shez1
Posts: 4
Joined: 27. Aug 2022, 15:22

VirtualBox Error - failed to load session for thee virtual machine XUbuntu

Post by Shez1 »

I was in a rush when closing out of my last session & accidentally hit 'restore current snapshot' 'ok' instead of closing my last ubuntu session. I closed the new session before it could reload (i didnt want it to load anyway. and i was in a rush)
When i have tried to load Xubuntu today an error message pops up saying :
Failed to open a session for the virtual machine Xubuntu.

Could not open the medium 'C:\Users\User\VirtualBox VMs\Xubuntu\Snapshots/{df08c53f-81da-419b-8d5f-d5749a87b828}.vdi'.

VDI: invalid pre-header in 'C:\Users\User\VirtualBox VMs\Xubuntu\Snapshots/{df08c53f-81da-419b-8d5f-d5749a87b828}.vdi' (VERR_VD_VDI_INVALID_HEADER).

VD: error VERR_VD_VDI_INVALID_HEADER opening image file 'C:\Users\User\VirtualBox VMs\Xubuntu\Snapshots/{df08c53f-81da-419b-8d5f-d5749a87b828}.vdi' (VERR_VD_VDI_INVALID_HEADER).

Result Code: E_FAIL (0x80004005)
Component: MediumWrap
Interface: IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
Please help, signed new hopeless dev in the making.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox Error - failed to load session for thee virtual machine XUbuntu

Post by scottgus1 »

You could try passing that snapshot disk file through Mpack's CloneVDI to see if the header can be fixed.

Else, you'll have to restore the file from your backups.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox Error - failed to load session for thee virtual machine XUbuntu

Post by mpack »

I'm afraid CloneVDI can't repair snapshots.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox Error - failed to load session for thee virtual machine XUbuntu

Post by scottgus1 »

Thanks! I wasn't aware of that limitation, will keep it in mind.

Shez1, it's backups or bust.
Post Reply