执行resize命令扩容
[zxl@fedora ~]$ qemu-img info /D/kvm-data/win7.qcow2 image: /D/kvm-data/win7.qcow2 file format: qcow2 virtual size: 30 GiB (32212254720 bytes) disk size: 20.2 GiB cluster_size: 65536 Snapshot list: ID TAG VM SIZE DATE VM CLOCK ICOUNT 1 snapshot1 0 B 2021-12-24 16:42:40 00:00:00.000 0 Format specific information: compat: 1.1 compression type: zlib lazy refcounts: true refcount bits: 16 corrupt: false extended l2: false [zxl@fedora ~]$ qemu-img resize /D/kvm-data/win7.qcow2 +10G Image resized. [zxl@fedora ~]$ qemu-img info /D/kvm-data/win7.qcow2 image: /D/kvm-data/win7.qcow2 file format: qcow2 virtual size: 40 GiB (42949672960 bytes) disk size: 20.2 GiB cluster_size: 65536 Snapshot list: ID TAG VM SIZE DATE VM CLOCK ICOUNT 1 snapshot1 0 B 2021-12-24 16:42:40 00:00:00.000 0 Format specific information: compat: 1.1 compression type: zlib lazy refcounts: true refcount bits: 16 corrupt: false extended l2: false [zxl@fedora ~]$