How to open .VHDX files in virtualbox?

9

I used disk2vhd by microsoft so I tried to create a new virtualbox using it and I got this error

Failed to open the hard disk C:\Users\user\Documents\Virtual Box Images\win7vir.VHDX

Could not open the medium 'C:\Users\user\Documents\Virtual Box Images\win7vir.VHDX'.

VHDX: Required flag of metadata item does not meet expectations 'C:\Users\user\Documents\Virtual Box Images\win7vir.VHDX' (VERR_VD_GEN_INVALID_HEADER).

VHDX: BAT region in image 'C:\Users\user\Documents\Virtual Box Images\win7vir.VHDX' is missing (VERR_VD_GEN_INVALID_HEADER).

VD: error VERR_VD_GEN_INVALID_HEADER opening image file 'C:\Users\user\Documents\Virtual Box Images\win7vir.VHDX' (VERR_VD_GEN_INVALID_HEADER).

Result Code: E_FAIL (0x80004005)
Component: Medium
Interface: IMedium {29989373-b111-4654-8493-2e1176cba890}
Callee: IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2}
Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
windows
virtualbox
virtual-machine
disk2vhd
asked on Super User Mar 1, 2014 by get52

4 Answers

6

Just uncheck "Make VHDX" when creating the image in Disk2vhd. Virtual Box doesn't support the .VHDX format.

screenshot of Disk2vhd options

answered on Super User Oct 13, 2014 by Parik • edited Aug 8, 2019 by Jon
4

Short answer: use the powershell commandlet to convert the VHDX to VHD. AFAIK it requires hyperv or one of it's variants to be installed to have the convert-vhd commandlet available.

Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd
answered on Super User Jul 31, 2019 by Justin Goldberg
2

VirtualBox since 4.2 changelog says support added for VHDX "Storage: added readonly support for VHDX images".

answered on Super User Sep 10, 2015 by robocat
2

On the GUI of VirtualBOX when selecting the disk image to attach to a virtual machine, there is an option to choose a new virtual disk or one that exists.

If you choose to use one that exists, on the combo box there is an option for VHDX, but any time you try it tell you file format is not supported.

Why is that vhdx option there? Just to confuse users?

It seems that VirtualBox in in pre-state of implemented vhdx support, but some parts has arrived at user side while they are not really implemented.

At least till version 5.1.22

answered on Super User Jul 11, 2017 by Anonymous

User contributions licensed under CC BY-SA 3.0