VERR_VD_VDI_INVALID_HEADER opening image file

Discussions related to using VirtualBox on Windows hosts.
Post Reply
BDub122
Posts: 7
Joined: 11. Oct 2014, 15:30

VERR_VD_VDI_INVALID_HEADER opening image file

Post by BDub122 »

I have a Windows host with a Linux guest. The host encountered some kind of error while copying a large file, which caused the guest to terminate abruptly. There seems to be corruption in the VDI header according to the error I receive when I try to start the VM now.
VM Name: Bryan's Yum Server 2

Could not open the medium 'D:\Bryan's Yum Server 2.vdi'.
VDI: invalid pre-header in 'D:\Bryan's Yum Server 2.vdi' (VERR_VD_VDI_INVALID_HEADER).
VD: error VERR_VD_VDI_INVALID_HEADER opening image file 'D:\Bryan's Yum Server 2.vdi' (VERR_VD_VDI_INVALID_HEADER).
Result Code:
E_FAIL (0X80004005)
Component:
MediumWrap
Interface:
IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
This VDI has no snapshots. I tried to use the "Copy" function on the "Media" screen to copy the VDI thinking that copying it might magically repair the header but I received the same error at the beginning of the copy process.

What else might I try to repair the header?

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

Re: VERR_VD_VDI_INVALID_HEADER opening image file

Post by scottgus1 »

Let Mpack's CloneVDI have a go at it. See the instructions about fixing headers.
Post Reply