Convert VHDx to VHD
For a project I needed to import a VM created on Hyper-V (Windows only) from which the HD format was VHDx into my Mac. On my Mac I’m using Parallels version 10. This operation was not that straight forward as I expected. Hereby I’ll share with you the way I eventually managed to do so.
Convert from Hyper-V VHDx to VHD
To convert the VHDx file to VHD, boot into a Windows 8 box (physical or VM). Or Windows Server 2012 or another, as long as there is support for running Hyper-V on that box. Then copy the VHDx file to a local folder on your Windows 8.
NOTE: Via a network share is not going to work!
Open Hyper-V Manager (Don’t know where? Just use Search)
Right click on your computer and choose Edit from the context menu
Select your input VHDx file
Choose action Convert
Select the VHD file type
Select the disk type (usually Dynamic)
Select the location and filename of your converted VHD file
The conversion process will start and convert your VHDx file to a VHD file.
The provided VHD file can then easily be converted using OOB tools shipping with Parallels. Assuming you have installed Parallels Desktop 10 for Mac, follow the steps below to get a working Parallels VM working in Mac OS
Copy the provided VHD file to a local directory on your Mac or make a copy available via an external drive (ideally via USB 3).
On your Mac open a terminal window and run the following command to convert the VHD file into a Parallels VM format:
After the script completed successfully you will find a virtual machine file of the same file name as the original file in your Parallels documents folder. The file will have a .pvm extension. The VM will show up in your start screen of Parallels and you can start the virtual machine.
Afterwards you can configure the VM to your liking.
Here is f.i. my Terminal log of this process
Berts-MacBook-Pro:~ bvlangen$ /Applications/Parallels\ Desktop.app/Contents/MacOS/prl_convert /Users/bvlangen/Documents/VMsConverted/Converted.vhd objc: Class DeallocHook is implemented in both /Applications/Parallels Desktop.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/5/libprl_sdk.5.dylib and /Applications/Parallels Desktop.app/Contents/MacOS/prl_convert. One of the two will be used. Which one is undefined. Conversion progress: 100 % Registering the virtual machine... The source third-party virtual disk was successfully converted to a Parallels virtual machine stored in /Users/bvlangen/Documents/Parallels/Converted.pvm.