Convert VMDK to VHD

Convert VMDK to VHD

Q. How do I convert a VMDK file to VHD using MVMC version 3?

A. Once you have installed MVMC 3.0 you can either convert VMs using the MVMC graphic interface or using PowerShell. If you want to perform an offline VMDK to VHD conversion use the following:

#Download at http://www.microsoft.com/en-us/download/details.aspx?id=42497 

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

Get-Command -module mvmccmdlet

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath "S:\Templates\Win2012DC.vmdk" -DestinationLiteralPath "C:\ClusterStorage\VMs\Temp" `
-VhdType DynamicHardDisk -VhdFormat Vhdx
#If offline can disable the tools. If was online could uninstall from the source VM Uninstall-MvmcSourceVMTools
Disable-MvmcSourceVMTools -DestinationLiteralPath "C:\ClusterStorage\VMs\Temp\Win2012DC.vhdx"

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish