From 01293cb2311658f0260bb1ff73acfcf0f6c8aae5 Mon Sep 17 00:00:00 2001 From: Dich Date: Wed, 16 Apr 2025 21:30:55 +0800 Subject: [PATCH] update:win_all --- content/windows-all.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/windows-all.md b/content/windows-all.md index 6121304..8e649d8 100644 --- a/content/windows-all.md +++ b/content/windows-all.md @@ -139,6 +139,16 @@ qemu-img convert -f qcow2 -O vpc input.qcow2 output.vhd ``` Convert-VHD -Path "output.vhd" -DestinationPath "output.vhdx" -VHDType Dynamic ``` +- vhd转vhdx +在 PowerShell 中执行以下命令:​ +``` +Convert-VHD -Path "C:\路径\源文件.vhd" -DestinationPath "C:\路径\目标文件.vhdx" -VHDType Dynamic + +# -Path:​指定原始 VHD 文件的路径。​ +# -DestinationPath:​指定转换后 VHDX 文件的保存路径。​ +# -VHDType:​指定磁盘类型,可选值为 Fixed(固定大小)或 Dynamic(动态扩展)。​ +``` +请确保虚拟机已关闭,并且 PowerShell 以管理员权限运行。 > 虚拟机固定IP