Skip to content

Instantly share code, notes, and snippets.

@matthiasbaldi
Created September 8, 2017 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthiasbaldi/05a50be24185616e763c1961f1d5ad1b to your computer and use it in GitHub Desktop.
Save matthiasbaldi/05a50be24185616e763c1961f1d5ad1b to your computer and use it in GitHub Desktop.
Convert VMWare VMDK to HyperV VHDX
// credits to:
// http://www.askme4tech.com/how-convert-vmware-virtual-machine-hyper-v
1. Install Microsoft Virtual Machine Converter
2. Open Powershell as Administrator
// Enter command
3. Import-Module "C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1"
// https://stackoverflow.com/questions/37481737/error-when-converting-vmware-virtual-disk-to-hyperv
4. Edit the VMWare vmdk file in a text editor and remove the complete "The Disk Data Base"
// Fix path's and enter command
5. ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath "C:\Users\user\Documents\temp\vm\pgdc.vmdk" -DestinationLiteralPath "C:\Users\Public\Documents\Hyper-V\Virtual hard disks\pgdc" -VhdType DynamicHardDisk -VhdFormat Vhd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment