Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1100959

Summary: Make the image virtual size as small as possible.
Product: Red Hat Enterprise Linux 6 Reporter: Jaroslav Henner <jhenner>
Component: guest-imagesAssignee: Joey Boggs <jboggs>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5CC: dgregor, jgreguske, leiwang, wshi, yuliu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1100962 (view as bug list) Environment:
Last Closed: 2014-06-19 13:56:03 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:
Bug Depends On: 977028, 1016787    
Bug Blocks:    

Description Jaroslav Henner 2014-05-24 14:10:11 UTC
Description of problem:
In the bug BZ#1045242 Perry requested to increase the virtual disk size to 16GB, because in that time, the image was not able to resize the root partition, thus neither the root FS. This is now possible with RHEL 6.5 (BZ#977028) as well as with 7.0 images, so now it would certainly be better to have the image virtual size as small as possible to make it fit as small flavor as possible. Note it cannot be shrunk easily, but can be easily enlarged. [1]

The minimum requirements for rhel 6 is 1G [2].

[1] Resizing the virtual disk size
`--> qemu-img info rhel-guest-image-6.5-20140522.0.x86_64.qcow2
image: rhel-guest-image-6.5-20140522.0.x86_64.qcow2
file format: qcow2
virtual size: 17G (18253611008 bytes)
disk size: 293M
cluster_size: 65536
.-(/tmp)----------------------------------------------------------------------(jhenner@veverka)-
`--> qemu-img resize rhel-guest-image-6.5-20140522.0.x86_64.qcow2 -1G
qemu-img: This image format does not support resize
.-(/tmp)----------------------------------------------------------------------(jhenner@veverka)-
`--> qemu-img resize rhel-guest-image-6.5-20140522.0.x86_64.qcow2 +1G
Image resized.
.-(/tmp)----------------------------------------------------------------------(jhenner@veverka)-
`--> qemu-img info rhel-guest-image-6.5-20140522.0.x86_64.qcow2
image: rhel-guest-image-6.5-20140522.0.x86_64.qcow2
file format: qcow2
virtual size: 18G (19327352832 bytes)
disk size: 293M
cluster_size: 65536 


[2] http://www.redhat.com/resourcelibrary/articles/articles-red-hat-enterprise-linux-6-technology-capabilities-and-limits




Version-Release number of selected component (if applicable):
rhel-guest-image-6.5-20140522.0

How reproducible:
always

Steps to Reproduce:
1. qemu-img info rhel-guest-image-6.5-20140522.0.x86_64.qcow2                          
2.
3.

Actual results:
qemu-img info rhel-guest-image-6.5-20140522.0.x86_64.qcow2                          
image: rhel-guest-image-6.5-20140522.0.x86_64.qcow2
file format: qcow2
virtual size: 16G (xxx bytes)
disk size: 293M
cluster_size: 65536


Expected results:
virtual size: 1G

Comment 2 Jaroslav Henner 2014-05-24 14:45:40 UTC
Am I too dare and is it too late to have this in 6.5?

Comment 3 Joey Boggs 2014-06-19 13:56:03 UTC

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