zhijun liu
2012-Oct-30 08:03 UTC
[libvirt-users] can not create "qcow2" format volume by Java library.
hi?all, when I use Java library to create volume ,specified format "qcow2"?but when I check it use qemu-img info ,it show format is "raw".? I think it a bug,can you fix it .. thanks very much. the java library version?0.4.8 libvirt version?0.9.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121030/23414dc2/attachment.htm>
Eric Blake
2012-Oct-30 18:38 UTC
[libvirt-users] [libvirt] can not create "qcow2" format volume by Java library.
[dropping libvir-list unless we can prove this is a development issue and not a usage problem] On 10/30/2012 02:03 AM, zhijun liu wrote:> hi?all, > > when I use Java library to create volume ,specified format "qcow2"?but when > I check it use qemu-img info ,it show format is "raw".?Can you show the exact code you used? Did you go through a binding where you passed an XML string, or where you passed individual pieces and the Java bindings built up the XML string on your behalf? Can you get things to happen correctly when using 'virsh' or even using C bindings instead of Java, to rule out whether it is a bug in libvirt proper or just the Java bindings?> > I think it a bug,can you fix it .. thanks very much. > > the java library version?0.4.8 > > libvirt version?0.9.8I'm not aware of any recent bug fixes in virStorageVolCreateXML (the underlying C API that the java library should be calling), but you might also want to try with 0.10.2 or even 1.0.0-rc2 to see if newer versions have solved the problem. -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 617 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121030/07b92c48/attachment.sig>
Claudio Bley
2012-Nov-06 08:45 UTC
[libvirt-users] [libvirt] can not create "qcow2" format volume by Java library.
Hi. At Tue, 30 Oct 2012 16:03:42 +0800, zhijun liu wrote:> > hi?all, > > when I use Java library to create volume ,specified format "qcow2"? > but when I check it use qemu-img info ,it show format is "raw".?More info please. What exactly did you do? Does it work when you do it manually using virsh? You have qemu-img installed, right?> I think it a bug,can you fix it .. thanks very much.I cannot reproduce your problem using libvirt 0.9.12. So, either this has been already fixed or you should try to better describe your problem. -- AV-Test GmbH, Henricistra?e 20, 04155 Leipzig, Germany Phone: +49 341 265 310 19 Web:<http://www.av-test.org> Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076) Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern