8. 将差量镜像转化成普通镜像,
使用qemu-img convert
转换差量w2k3-test-01为普通镜像w2k3-test-01-10,格式为qcow2
qemu-img convert -f qcow2 -O qcow2 w2k3-test-01 w2k3-test-01-10
qemu-img info w2k3-test-01
image: w2k3-test-01
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 122M
cluster_size: 65536
backing file: /data/win2003ent32chs
qemu-img info w2k3-test-01-10
image: w2k3-test-01-10
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 3.3G
cluster_size: 65536
9. 更换镜像的后备镜像
-u 参数非安全方式,只是更换镜像
不带参数-u,会比较旧的后备镜像和新的后备镜像的差异,以新的镜像为准
qemu-img rebase -u -b w2k3-test-01-10 w2k3-test-01
qemu-img info w2k3-test-01
image: w2k3-test-01
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 122M
cluster_size: 65536
backing file: w2k3-test-01-10
KVM虚拟机差量生产镜像测试(3)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/be9b3d6c47cc341c8322ed03236d8b0c.html