Convert a VMware Workstation VMDK file to Hyper-V VHDX format offline
Today I've been working with Hyper-V on a desktop Windows 8.1 environment as an alternative to VMware Workstation.
There seem to be a myriad of options when it comes to converting the virtual hard disks from VMDK to the new(ish) VHDX format.
After trying various ones the information seems to be confusing and contradictory some don't support VHDX, some support VHDX such as Microsoft Virtual Machine Converter 3.0 graphical interface, however require you to be running VMware ESXi and vSphere, whereas I'm using VMware workstation.
The best solution I've found is to use the PowerShell commands for Microsoft Virtual Machine Converter 3.0,
There seem to be a myriad of options when it comes to converting the virtual hard disks from VMDK to the new(ish) VHDX format.
After trying various ones the information seems to be confusing and contradictory some don't support VHDX, some support VHDX such as Microsoft Virtual Machine Converter 3.0 graphical interface, however require you to be running VMware ESXi and vSphere, whereas I'm using VMware workstation.
The best solution I've found is to use the PowerShell commands for Microsoft Virtual Machine Converter 3.0,
- Download Microsoft Virtual Machine Converter 3.0
http://www.microsoft.com/en-gb/download/details.aspx?id=42497 - Open PowerShell as an administrator
- Type C:
- cd "\Program Files\Microsoft Virtual Machine Converter"
- Import-Module .\MvmcCmdlet.psd1
- To see the available commands type
get-command -module mvmc* - The command we want is ConvertTo-MvmcVirtualHardDisk
ConvertTo-MvmcVirtualHardDisk [-SourceLiteralPath] <string> [[-DestinationLiteralPath] <string>] [[-VhdType] <VhdType> {DynamicHardDisk | FixedHardDisk}] [[-VhdFormat] <VhdFormat> {Vhd | Vhdx}] [<CommonParameters>] - Here's the completed command line
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath "D:\VirtualMachines\source.vmdk" -DestinationLiteralPath "D:\VirtualMachines\destination.vhdx" -VhdType DynamicHardDisk -VhdFormat Vhdx
Comments
Post a Comment