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 921419

Summary: virt-manager will show vdi disk as raw format
Product: Red Hat Enterprise Linux 7 Reporter: tingting zheng <tzheng>
Component: virt-managerAssignee: Martin Kletzander <mkletzan>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: codong, gkong, hyao, lcui, mkletzan, rwu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-19 15:46:51 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 tingting zheng 2013-03-14 07:30:33 UTC
Description
virt-manager will show vdi disk as raw format

Version
virt-manager-0.9.4-4.el7.noarch
libvirt-1.0.3-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce
1.Create a disk with vdi format.
# qemu-img create -f vdi vdi1.img 8G
Formatting 'vdi1.img', fmt=vdi size=8589934592 static=off 

# qemu-img info vdi1.img
image: vdi1.img
file format: vdi
virtual size: 8.0G (8589934592 bytes)
disk size: 36K
cluster_size: 1048576


2.Launch virt-manager,details->storage,the disk vdi1.img shows as raw.

Actual results:
As steps

Expected results:
Disk with vdi format shows as vdi.

Additional info:

Comment 2 tingting zheng 2013-03-15 02:56:53 UTC
Additional info:
1.In pool test,create a image with vdi format.
# qemu-img create -f vdi vdi.img 1G
Formatting 'vdi.img', fmt=vdi size=1073741824 static=off 

2.From virt-manager,the size of the image is incorrect,in this case:the size of vdi.img is 4194304.00 GB,

Comment 3 Martin Kletzander 2013-03-19 15:46:51 UTC
The detection of disk format is done by libvirt and by default disabled as it is partly exploitable.  Because of this, virt-manager has to rely on user to specify the disk format.  The size is wrongly detected due to Bug #921452, so I'm closing it as a duplicate.  Feel free to discuss in case you disagree.

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