qemu使用

qemu-img

支持的镜像格式:vvfat vpc vmdk vdi sheepdog rbd raw host_cdrom host_floppy host_device file qed qcow2 qcow parallels nbd dmg tftp ftps ftp https http cow cloop bochs blkverify blkdebug

#查看qemu-img支持的镜像格式
qemu-img -h |grep "Supported formats"

#创建一个raw格式的1G大小的镜像名为test.raw的镜像
qemu-img -f raw test.raw 1G

#改变镜像的大小
qemu-img resize test.raw +1GB

#将test.raw镜像的格式转换为qcow2
qemu-img convert -O qcow2 test.raw test.qcow2

你可能感兴趣的:(linux)