跳至正文

PVE文件格式转换-附命令用法

新浪微博 豆瓣 QQ 百度贴吧 QQ空间

附命令用法

qemu-img convert -f <原格式> -O <目标格式> <原文件路径> <目标文件路径> 
这里 -f <原格式>可以忽略。qemu-img会自动识别

vmdk转qcow2

qemu-img convert -O qcow2 test.vmdk test.qcow2
#qcow2转vmdk
qemu-img convert -O vmdk test.qcow2 test.vmdk

vdi转qcow2

qemu-img convert -O qcow2 test.vdi test.qcow2

vhd&vhdx转qcow2

qemu-img convert -O qcow2 test.vhdx test.qcow2

RAW转qcow2

qemu-img convert -O qcow2 test.raw test.qcow2

img转qcow2

qemu-img convert -O qcow2 test.img test.qcow2

然后挂载到一个虚拟机上

标签:

《PVE文件格式转换-附命令用法》有1个想法

发表回复