Hi All I am trying to deploy VMs using libvirt and a domainXML file where i mention the parameters for the VM to be deployed. I am using libvirt version: libvirt 0.10.2 ********** virsh # version Compiled against library: libvirt 0.10.2 Using library: libvirt 0.10.2 Using API: QEMU 0.10.2 Running hypervisor: QEMU 0.12.1 *********** I get this libvirt exception while deploying a VM. Exception trace ************** 2015-04-14 18:06:28,240 [pool-1-thread-45] ERROR defineDomain(SimpleAppliance.java:581) - Failed to define domain/VM from XML org.libvirt.LibvirtException: unsupported configuration: unknown driver format value 'qcow3' at org.libvirt.ErrorHandler.processError(Unknown Source) at org.libvirt.Connect.processError(Unknown Source) at org.libvirt.Connect.processError(Unknown Source) at org.libvirt.Connect.domainDefineXML(Unknown Source) ******************************** Do i need to upgrade to any specific version of libvirt ? or change any file to make this work ? Thanks Jatin --------------050009030205070002060507 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font face="Times New Roman">Hi All<br> <br> I am trying to deploy VMs using libvirt and a domainXML file where i mention the parameters for the VM to be deployed. <br> <br> I am using libvirt version: libvirt 0.10.2<br> <br> **********<br> virsh # version<br> Compiled against library: libvirt 0.10.2<br> Using library: libvirt 0.10.2<br> Using API: QEMU 0.10.2<br> Running hypervisor: QEMU 0.12.1<br> ***********<br> <br> I get this libvirt exception while deploying a VM.<br> <br> Exception trace **************<br> 2015-04-14 18:06:28,240 [pool-1-thread-45] ERROR defineDomain(SimpleAppliance.java:581) - Failed to define domain/VM from XML<br> org.libvirt.LibvirtException: unsupported configuration: unknown driver format value 'qcow3'<br> at org.libvirt.ErrorHandler.processError(Unknown Source)<br> at org.libvirt.Connect.processError(Unknown Source)<br> at org.libvirt.Connect.processError(Unknown Source)<br> at org.libvirt.Connect.domainDefineXML(Unknown Source)<br> ********************************<br> <br> Do i need to upgrade to any specific version of libvirt ? or change any file to make this work ?<br> <br> Thanks<br> Jatin<br> </font> </body> </html> --------------050009030205070002060507--
On 04/15/2015 08:13 AM, Jatin Davey wrote:> Hi All > > I am trying to deploy VMs using libvirt and a domainXML file where i > mention the parameters for the VM to be deployed. > > I am using libvirt version: libvirt 0.10.2[I'm guessing that you are using something based on RHEL 6, based on how old that version number is...] This version of libvirt does not know how to handle qcow2v3 files. qemu started creating these by default around qemu 2.0 or so, but you can still manually create older qcow2v2 files by specifying: qemu-img create -o compat=0.10 -f qcow2 ... whenever you are manually creating images.> > Do i need to upgrade to any specific version of libvirt ? or change any > file to make this work ?With new enough qemu-img, you can also downgrade an image in-place: qemu-img convert -f qcow2 -o compat=0.10 file Or, as you guessed, you can upgrade to newer libvirt that understands the newer format. [For example, basing your distro on RHEL 7, even if you choose to use CentOS instead of RHEL, is a way to get new-enough libvirt] -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Dominique Ramaekers
2015-Apr-15 14:25 UTC
Re: [libvirt-users] unknown driver format value 'qcow3'
According to the qcow3 roadmap http://wiki.qemu.org/Features/Qcow3 , qcow3 is an extention of qcow2 and you should be able to use the existing qcow3 images as qcow2 images. So changing qcow3 to qcow2 in you XML should fix this. -----Oorspronkelijk bericht----- Van: Eric Blake [mailto:eblake@redhat.com] Verzonden: woensdag 15 april 2015 16:20 Aan: Jatin Davey; libvirt-users@redhat.com Onderwerp: Re: [libvirt-users] unknown driver format value 'qcow3' On 04/15/2015 08:13 AM, Jatin Davey wrote:> Hi All > > I am trying to deploy VMs using libvirt and a domainXML file where i > mention the parameters for the VM to be deployed. > > I am using libvirt version: libvirt 0.10.2[I'm guessing that you are using something based on RHEL 6, based on how old that version number is...] This version of libvirt does not know how to handle qcow2v3 files. qemu started creating these by default around qemu 2.0 or so, but you can still manually create older qcow2v2 files by specifying: qemu-img create -o compat=0.10 -f qcow2 ... whenever you are manually creating images.> > Do i need to upgrade to any specific version of libvirt ? or change > any file to make this work ?With new enough qemu-img, you can also downgrade an image in-place: qemu-img convert -f qcow2 -o compat=0.10 file Or, as you guessed, you can upgrade to newer libvirt that understands the newer format. [For example, basing your distro on RHEL 7, even if you choose to use CentOS instead of RHEL, is a way to get new-enough libvirt] -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users