物理机迁移至pve
qemu-img convert -f vhdx -O qcow2 input.vhdx output.qcow2
-f 后面是源文件格式
-O 后面是目标文件的格式
紧接着空格源文件路径 空格目标文件名
意思为把qcow2文件转换成raw的img文件
支持vhd、vmdk、qcow2、raw、vhdx、qcow、vdi和qed格式的镜像的相互转换
qm disk import 105 output.qcow2 local --format=qcow2
105 qve虚拟机ID
output.qcow2 文件地址
local 存储磁盘镜像的位置
--format=qcow2 磁盘镜像格式 raw/vmdk/qcow2