Bug 1789853

Summary: qcow2 format image newly created by virt-manager occupy too many disk space
Product: [Fedora] Fedora Reporter: lnie <lnie>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: berrange, crobinso, philip.wyett
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-26 21:50:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lnie 2020-01-10 15:00:20 UTC
Description of problem:
Add a new qcow2 disk image to VM fedora-rawhide use virt-manager,find the disk size is exactly the same as the virtual size.
[root@bogon libvirttestapi]# qemu-img info /var/lib/libvirt/images/fedora-rawhide-1.qcow2
image: /var/lib/libvirt/images/fedora-rawhide-1.qcow2
file format: qcow2
virtual size: 20 GiB (21474836480 bytes)
disk size: 20 GiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: true
    refcount bits: 16
    corrupt: false


Version-Release number of selected component (if applicable):
virt-manager-2.2.1-2.fc31.noarch
libvirt-5.6.0-5.fc31.x86_64


How reproducible:
always 

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
The disk size of the "new" created qcow2 image should be way smaller than the virtual size

Additional info:

Comment 1 Cole Robinson 2020-01-26 21:50:08 UTC
I think this is due to the details reported in this other bug, duping

*** This bug has been marked as a duplicate of bug 1759454 ***