win10操作系统下VMware虚拟机文件转化Hyper-v虚拟机文件

参考:

https://www.sourceonetechnology.com/convert-vmware-vmdk-files-into-hyper-v-vhd/

https://www.petenetlive.com/KB/Article/0001508

1. Microsoft Virtual Machine Converter 3.1
https://www.microsoft.com/en-us/download/details.aspx?id=42497
下载 mvmc_setup.msi 并安装到默认的C盘位置。

2.用管理员权限打开Windows Powershell

执行如下指令

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

(2)ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath 'vmdk文件所在位置' -DestinationLiteralPath '转化后保存的位置'               -VhdType DynamicHardDisk -VhdFormat Vhdx

注:这个过程中可能会出现错误。“The entry “{4}’ is not a supported disk database entry for the descriptor.”解决方案在步骤3中。

3.找到大小为1KB左右的vmdk文件,将标红位置的行用“#“注释掉后重新运行上面的程序即可。

猜你喜欢

转载自blog.csdn.net/qq_35576225/article/details/107566492