First you will need to download and install Microsoft Virtual Machine Converter 3.0 from Microsoft’s website.

Next, open an elevated PowerShell prompt and run these command (changing the paths to match your source VMDK file and destination path of your new VHD file):

Import-Module ‘C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1’

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath “C:\Ubuntu-disk1.vmdk” -DestinationLiteralPath “C:\Ubuntu-disk1.vhd” -VhdType FixedHardDisk -VhdFormat Vhd

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath “C:\Ubuntu-disk1.vmdk” -DestinationLiteralPath “C:\Ubuntu-disk1.vhd” -VhdType FixedHardDisk -VhdFormat Vhd

 

Last updated on 24 Nov 2020
320 reads
Tell us what you think?00