# qemu-img create -f qcow2 centos.qcow2 5G #创建5G的qcow2镜像
# virt-sparsify -x /root/test1.qcow2 --convert qcow2 /root/test2.qcow2 #消除镜像空洞
# virt-sparsify --compress --convert qcow2 centos.img centos.qcow2 #镜像格式转换
qcow2文件压缩
最新推荐文章于 2025-02-28 15:46:09 发布