How to Convert a VMWare VMDK to Hyper-V VHDX

A few days ago, I used Vmware P2V tool to convert my physical server to a virtual server. After doing that, I wiped the machine. I then decided to use Hyper-V instead. I had to find a way to convert the hard drive to a Hyper-V .VHDX disk instead of a VMWare disk without having an actual running VMWare server.

I stumbled upon Microsoft’s Virtual Machine Converter 3.0 which does the conversion. It installs a GUI tool that takes the VMWare ESXi server and converts the running machines to Hyper-V. That did not help me since I didn’t actually have an esxi host. I found that it also installs a PowerShell module that you can use to convert just the virtual hard drive to a VHDX.

First, install the tools: Microsoft Virtual Machine Converter 3.0

Second, open PowerShell and run the below two commands. First, import the module:

Second, convert the drive (of course change the paths to your need):

And after some time of processing, you will have a VHDX!


This site uses Akismet to reduce spam. Learn how your comment data is processed.