I made an image with disk2vhd and unfortunately I chose VHDX instead of VHD. I didn't see any information about what to choose.
Anyway, now that file is all I have, the original PC is trashed. So I need to know how to run it as a Virtual Machine in Windows 7.
VirtualBox doesn't have an option to open VHDX and WM Converter doesn't have an option to open VHDX (or to convert to VHD).
6 Answers
You can do that conversion with VirtualBox :
VBoxManage.exe clonemedium "input_file.vhdx" "output_file.vhd" --format VHDDefault Path to VBoxManage.exe
C:\Program Files\Oracle\VirtualBox\ 3 Before anything, make a backup of the original .VHDX, just in case.
You said you have Windows 7. In that case, you can easily convert VHDX to VHD with PowerShell.
Go to "Run..." (Windows + R) and type Powershell.
Then, in the PowerShell command line, type the command PS C:\> Convert-VHD –Path YOUR VHDX PATH –DestinationPath YOUR DESTINATION PATH
It should be converted then.
You can find additional information about the Convert-VHD command here.
To convert vhdx to vhd use the free StarWind V2V Image Converter
1I made the same mistake, when creating the Virtual disk from the physical with Disk2VHD, there is a check box at the top right (second down) that is ticked by default to create a vhdx, Remove this check and it will create a vhd instead.
I managed to extract files from a Windows 10 VMDH "Windows Image Backup" and to write them to a Windows 7 machine: I installed Windows Server 2012 (free 180 days evaluation) in a virtual machine and connected it to my local hard disk via a network share. This way I could "mount" the VMDH backup and write the important files back to my local drive.
- Open CMD as Admin, and type the following command to switch to VirtualBox folder:
cd "C:\Program Files\Oracle\VirtualBox"- Then type this command to convert from VHDX to VHD:
VBoxManage convertfromraw "C:\Full-Path-To\image.VHDX" "C:\Full-Path-To\new-image.VHD" --format VHDAfter that, I would prefer giving the result VHD image a new UUID by using this command:
VBoxManage internalcommands sethduuid "C:\Full-Path-To\new-image.VHD"Extra step I usually do when converting/cloning images in VirtualBox as it tends to show many errors when it finds 2 images with the same UUID. Unlike Hyper-V doesn't care for that.
Note:These commands mentioned above are case sensitive! (convertfromraw - internalcommands - sethduuid)