COMException (0x80BB000C): Cannot close medium because it has 1 child media

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
Bidyut
Posts: 10
Joined: 19. Aug 2018, 15:52

COMException (0x80BB000C): Cannot close medium because it has 1 child media

Post by Bidyut »

VirtualBox: v6.1.4
Language: C#.NET
OS: Windows 10 Pro

We have a few snapshots generated in Windows Server 2016 and copied to another machine running Windows 10 Pro. While registering the snapshot using 'OpenMedium', its state is 'MediumState.MediumState_Inaccessible'. Later, while closing the snapshot, we are encountering the below error.

System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close medium '<SnapshotPath>' because it has 1 child media at VirtualBox.IMedium.Close() System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close medium 

Note: The above error did not occur when those snapshots were generated in Windows Server 2012 R2!
Bidyut
Posts: 10
Joined: 19. Aug 2018, 15:52

Re: COMException (0x80BB000C): Cannot close medium because it has 1 child media

Post by Bidyut »

In addition, there is an internal error captured.

The instruction at 0x00007FFE0AAAC2C3 referenced memory at 0x000000000044EFFFF. The memory could not be read.
Bidyut
Posts: 10
Joined: 19. Aug 2018, 15:52

Re: COMException (0x80BB000C): Cannot close medium because it has 1 child media

Post by Bidyut »

In the beginning, while starting the VM and restoring the snapshots (created in Windows Server 2016), we encounter the referenced memory problem first as a popup message (attached). On acknowledgment, VM goes to the aborted state. As a next step, we are restarting the VM which lead to the COMException given below.

System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close medium '<SnapshotPath>' because it has 1 child media at VirtualBox.IMedium.Close() System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close medium
Attachments
VboxMemoryProblem.PNG
VboxMemoryProblem.PNG (68.32 KiB) Viewed 18253 times
Bidyut
Posts: 10
Joined: 19. Aug 2018, 15:52

Re: COMException (0x80BB000C): Cannot close medium because it has 1 child media

Post by Bidyut »

We have also checked the below scenario which is working without any problem.

Generated the snapshots from Windows 10 Pro (1903) machine and copied to another Windows 10 Pro (1903) machine. Able to restore the snapshots successfully.
Post Reply