Bug 504119 - Storage driver is built without QCow2 support due to missing qemu-img BuildRequires
Summary: Storage driver is built without QCow2 support due to missing qemu-img BuildR...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-04 11:08 UTC by Daniel Berrangé
Modified: 2009-12-14 21:23 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:23:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2009:1269 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2009-09-01 09:31:21 UTC

Description Daniel Berrangé 2009-06-04 11:08:35 UTC
Description of problem:
The libvirt spec file currntly has the BuildRequires: /usr/bin/qemu-img commented out. This needs to be uncommented, so that it will biuld with qemu-img support. This allows the libvirt storage driver to create QCow2 files. 

Since the qemu-img binary is split into a separate kvm-qemu-img RPM, this RPM can be used on both RHEL-5 Xen and RHEL-5  KVM installs equally.

Version-Release number of selected component (if applicable):
libvirt 0.6.3-4.el5

How reproducible:
Always

Steps to Reproduce:
1. Attempt to create a qcow file using libvirt storage APIs
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Veillard 2009-06-05 15:17:42 UTC
libvirt-0.6.3-6.el5 has been built in dist-5E-qu-candidate with the fix
where possible, as /usr/bin/qemu-img is only available on x86_64:

x86_64 build log configure
https://brewweb.devel.redhat.com/getfile?taskID=1829713&name=build.log
---
checking for qemu-img... /usr/bin/qemu-img
checking for qcow-create... no
----

ia64 build log configure
https://brewweb.devel.redhat.com/getfile?taskID=1829712&name=build.log
---
checking for qemu-img... no
checking for qcow-create... /usr/sbin/qcow-create
---

i386 build log configure
https://brewweb.devel.redhat.com/getfile?taskID=1829714&name=build.log
---
checking for qemu-img... no
checking for qcow-create... /usr/sbin/qcow-create
---

To some extend that check should be done at runtime instead for more flexibility
but that should be fixed upstream.

Daniel

Comment 3 Nan Zhang 2009-06-08 09:20:51 UTC
This bug has been verified with libvirt 0.6.3-6 on RHEL-5.4. Fixed.

[root@dhcp-66-70-85 storage]# virsh pool-list
Name                 State      Autostart 
-----------------------------------------
default              active     yes       

You have new mail in /var/spool/mail/root
[root@dhcp-66-70-85 storage]# virsh vol-list --pool default
Name                 Path                                    
-----------------------------------------
demo.img             /var/lib/libvirt/images/demo.img

[root@dhcp-66-70-85 storage]# virsh vol-create default volume.xml 
Vol test.img created from volume.xml

[root@dhcp-66-70-85 storage]# virsh vol-list --pool default
Name                 Path                                    
-----------------------------------------
demo.img             /var/lib/libvirt/images/demo.img        
test.img             /var/lib/libvirt/images/test.img        

[root@dhcp-66-70-85 storage]# file /var/lib/libvirt/images/test.img
/var/lib/libvirt/images/test.img: QEMU Copy-On-Write disk image version 2, size 1 + -2147483648

Create a qcow2 file using libvirt storage APIs successful.

Comment 5 errata-xmlrpc 2009-09-02 09:23:56 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1269.html


Note You need to log in before you can comment on or make changes to this bug.