qemu-img info /D/kvm-data/win7.qcow2
qemu-img resize /D/kvm-data/win7.qcow2 +10G
执行resize命令扩容
[zxl@fedora ~]$ qemu-img info /D/kvm-data/win7.qcow2image: /D/kvm-data/win7.qcow2file format: qcow2virtual size: 30 GiB (32212254720 bytes)disk size: 20.2 GiBcluster_size: 65536Snapshot list:ID TAGVM SIZEDATEVM CLOCKICOUNT1 snapshot1 0 B -12-24 16:42:40 00:00:00.0000Format specific information:compat: 1.1compression type: zliblazy refcounts: truerefcount bits: 16corrupt: falseextended l2: false[zxl@fedora ~]$ qemu-img resize /D/kvm-data/win7.qcow2 +10GImage resized.[zxl@fedora ~]$ qemu-img info /D/kvm-data/win7.qcow2image: /D/kvm-data/win7.qcow2file format: qcow2virtual size: 40 GiB (42949672960 bytes)disk size: 20.2 GiBcluster_size: 65536Snapshot list:ID TAGVM SIZEDATEVM CLOCKICOUNT1 snapshot1 0 B -12-24 16:42:40 00:00:00.0000Format specific information:compat: 1.1compression type: zliblazy refcounts: truerefcount bits: 16corrupt: falseextended l2: false[zxl@fedora ~]$