Page 1 of 1

Unable to open VDI after aborted session

Posted: 26. Mar 2015, 18:33
by ADE12345
I was using my virtual machine and suddenly it locked up. The session aborted and now the hard drive is inaccessible. What can I do?

I tried running the "vboxmanage internalcommand repairhd -format VDI <filename>" utility but it is returning:

C:\Program Files\Oracle\VirtualBox>vboxmanage internalcommands repairhd -format
VDI "REMOVED"

VBoxManage.exe: error: VDI: invalid header in 'REMOVED'
VBoxManage.exe: error: Error code VERR_VD_IMAGE_REPAIR_IMPOSSIBLE at F:\tinderbo
x\win-4.3\src\VBox\Storage\VDI.cpp(3088) in function int __cdecl vdiRepair(const
char *,struct VDINTERFACE *,struct VDINTERFACE *,unsigned int)

Re: Unable to open VDI after aborted session

Posted: 26. Mar 2015, 19:07
by mpack
Where have you seen documentation of "internalcommands repairhd"? As far as I can tell that (very obscure) command is only relevant to VHDs, and it does a very specific fix, it is not a panacea.

If your VDI is corrupted then the only sure cure is to restore it from a backup.

What does CloneVDI say if you use it to try to open this VDI?

Re: Unable to open VDI after aborted session

Posted: 26. Mar 2015, 19:12
by ADE12345
I don't have a backup unfortunately. I don't have enough hdd space to back up my VMs. This one was 50GB by itself... Sad that this would happen from a random crash.

Re: Unable to open VDI after aborted session

Posted: 26. Mar 2015, 19:15
by mpack
I'm afraid we can't control what happens on a Windows host when it crashes.

Check the VDI with CloneVDI.