VERR_VD_VDI_INVALID_HEADER

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Vlczech
Posts: 2
Joined: 14. Jul 2007, 22:06
Contact:

VERR_VD_VDI_INVALID_HEADER

Post by Vlczech »

Hello, VERR_VD_VDI_INVALID_HEADER occurs on my VDI image. How can I repair it? I tried CloneVDI (by @mpack ) also, but there occurs error "Source file is not a recognized VDI file format" :( Thank you very much
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: VERR_VD_VDI_INVALID_HEADER

Post by scottgus1 »

If CloneVDI can't fix it, it ain't fixable. Could be that more was damaged than just the header. Only way to continue is by restoring from your backups.
itsme300
Posts: 7
Joined: 16. Oct 2020, 15:52

Re: VERR_VD_VDI_INVALID_HEADER

Post by itsme300 »

I had the same issue where clonevdi failed to repair. But mpack's manual solution fixed it.

Edit: Sorry, I would not like to spread my misunderstanding. Please follow expert's suggestions.

viewtopic.php?f=6&t=100256
Last edited by itsme300 on 23. Oct 2020, 12:35, edited 2 times in total.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: VERR_VD_VDI_INVALID_HEADER

Post by mpack »

CloneVDI simply implements my manual method in code, so there's no way the "manual method" works when CloneVDI doesn't. Also, the manual method has to be tailored to each case, there's no way it works for anyone other than the original intended individual - but it may appear to have worked, if you have done no error checking (like CloneVDI does) until the internal inconsistencies (i.e. the fact that the header is valid except it doesn't correctly describe the image) wrecks the VM.

Though perhaps I have misunderstood: if you truly understand the manual method then you can tailor it to any repairable scenario, which is what CloneVDI in fact does. But that is not the vibe I'm getting.
itsme300
Posts: 7
Joined: 16. Oct 2020, 15:52

Re: VERR_VD_VDI_INVALID_HEADER

Post by itsme300 »

may be you can have a look at this --> viewtopic.php?f=6&t=100256
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: VERR_VD_VDI_INVALID_HEADER

Post by mpack »

Yes, I already saw that topic when it was new, plus you already linked to it above. In that topic you said your problem was fixed, which is fine, I'm not going to argue if you're happy - hence didn't argue at the time. But the reason you gave for it being fixed makes no sense (as I've explained above), and I have to draw the line when you start spreading your misunderstanding into other's topics.
itsme300
Posts: 7
Joined: 16. Oct 2020, 15:52

Re: VERR_VD_VDI_INVALID_HEADER

Post by itsme300 »

I suggested you earlier to view my header issue in an attempt to know if only the header is corrupted or any other problems with my disk. BTW the manual solution would fix it only temporarily. I restarted my VM today to see some corruption issues with my /home vdi and I had to replace it with a new vdi. Sorry for the wrong direction.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: VERR_VD_VDI_INVALID_HEADER

Post by mpack »

There is no need for me to review your header: I stopped doing that after I codified the procedure in CloneVDI. The reason your fix is only temporary is that it isn't a fix, all you did was hide the header error - the underlying corruption remained and emerges again as soon as you do anything to the disk.

However, if your temporary workaround allows you to start the VM then I would certainly use that opportunity to copy out important files: but check them outside the VM, because with a corrupted filesystem can corrupt the file contents without affecting the size or filename.
Post Reply