Convert a VMDK (VMWare) file to VHDX (Hyper-V)

https://www.meziantou.net/2016/09/09/convert-a-vmdk-vmware-file-to-vhdx-hyper-v

Microsoft provides a free tool to convert an existing virtual machine to a Hyper-V virtual machine: Microsoft Virtual Machine Converter.

This tool has a graphical interface allowing to carry out the most common operations. However, in some cases (often non-enterprise), you must use the supplied PowerShell cmdlet.

For example, the following script converts a virtual hard disk of type VMDK (VMWare) to a virtual disk in VHDX (Hyper-V) format :

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

$vmdk="sample.vmdk"
$vhdx="sample.vhdx"

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath $vmdk -DestinationLiteralPath $vhdx

 

按上述文章进行转换,虽然成功了,也启动了,但进不了系统。因为之前我的虚拟机系统是静态的,非DHCP的。

暂时没有想到解决办法。

posted @ 2019-02-02 11:34  香巴拉  阅读(384)  评论(0编辑  收藏  举报