使用语法1
2qemu-img convert -f <原格式> -O <目标格式> <原文件路径> <目标文件路径>
这里 -f <原格式>可以忽略。qemu-img会自动识别
vmdk与qcow2互转1
2
3qemu-img convert -O qcow2 test.vmdk test.qcow2
#qcow2转vmdk
qemu-img convert -O vmdk test.qcow2 test.vmdk
vdi转qcow21
qemu-img convert -O qcow2 test.vdi test.qcow2
vhd&vhdx转qcow21
qemu-img convert -O qcow2 test.vhdx test.qcow2
RAW转qcow21
qemu-img convert -O qcow2 test.raw test.qcow2
img转qcow21
qemu-img convert -O qcow2 test.img test.qcow2