My VDI file won't attach with VERR_NOT_SUPPORTED

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Lapis_Lazuli
Posts: 7
Joined: 14. Aug 2019, 17:17
Primary OS: MS Windows 8.1
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: a lot
Location: South Dublin, Republic of Ireland

My VDI file won't attach with VERR_NOT_SUPPORTED

Post by Lapis_Lazuli »

Hi.

I was trying to start up my virtual machine, and I saw in its info that its only hard disk, in VDI format, looks inaccessible. I looked at the path to the disk, and the file exists. When I tried re-attaching the disk to the VM, I got this error:

Code: Select all

Could not get the storage format of the medium 'C:\Users\fjmud\Virtualbox VMs\Windows XP\Windows XP.vdi' (VERR_NOT_SUPPORTED).

Result Code:  VBOX_E_IPRT_ERROR (0x80BB0005)
Component:    MediumWrap
Interface:    IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
Callee:       IVirtualBox {d0a0163f-e254-4e5b-a1f2-011cf991c38d}
Callee RC:    VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
I had a power outage recently, so my PC obviously shut down, and this VM was running at the time; I think this may be relevant. I've tried using CloneVDI, and it gets an OS error 0 when reading from the file. None of my other VDIs have this.
Here's some info about my host and guest configuration.
Host: HP All-in-One 24-f1xx // Windows 10 build 19042.662 64-bit // 8 GB RAM, 6 GB usable // VirtualBox 6.1.16r140961
Guest: Windows XP SP3 32-bit // 192 MB RAM // Guest Additions

I can't really provide a log, since the issue is with the VDI file and not the VM itself. The VM starts just fine without that disk though.
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: My VDI file won't attach with VERR_NOT_SUPPORTED

Post by mpack »

Lapis_Lazuli wrote:I got this error (VERR_NOT_SUPPORTED)
...
I looked at the path to the disk, and the file exists.
...
I've tried using CloneVDI, and it gets an OS error 0 when reading from the file.
Error 0 in CloneVDI means it reached end of file unexpectedly, i.e. the file has been truncated, but there's no disk error.

In VirtualBox VERR_NOT_SUPPORTED usually means that the file header has unexpected contents, so whatever the problem is happens early enough in the file to affect the header.

So, check the size of the VDI, not just that it exists. I think you may find that the file has a length of zero.
Post Reply