Hyper-V - Convert virtual disk file from vmdk to vhdx

$ %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
  • 导入转换模块
$ Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
  • 转换文件格式
$ ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath "oracle_11g.vmdk" -VhdType DynamicHardDisk -VhdFormat vhdx -destination "C:\Temp\"

Destination               Source
-----------               ------
C:\Temp\oracle_11g.vhdx   .\oracle_11g.vmdk