moreabout.tech avatar

How to Convert a VMWare VMDK to Hyper-V VHDX

moreabout.tech

Published: 09 Feb 2019 › Updated: 09 Feb 2019How to Convert a VMWare VMDK to Hyper-V VHDX

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:

Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
Second, convert the drive (of course change the paths to your need):
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1
And after some time of processing, you will have a VHDX!

 


Originally posted at https://moreabout.tech/how-to-convert-a-vmware-vmdk-to-hyper-v-vhdx/

Leave How to Convert a VMWare VMDK to Hyper-V VHDX to:

Written by

Read more #technology posts


Best Posts From moreabout.tech

We have not curated any of moreabout.tech's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From moreabout.tech