On 2017-11-15 22:50, Gandalf Corvotempesta wrote:> https://stacklet.com/downloads/XenServer-XVA-Template-Debian-7.8-Lightweight-x86Hmmm, that gives me a timeout when downloading. And another image I got gives me an "argument list too long" -- which I had feared already... It has a size of 3 MB and Linux "only" allows 2... Max
Gandalf Corvotempesta
2017-Nov-15 22:47 UTC
Re: [Libguestfs] [Qemu-devel] [qemu-img] support for XVA
Il 15 nov 2017 11:28 PM, "Max Reitz" <mreitz@redhat.com> ha scritto: Hmmm, that gives me a timeout when downloading. And another image I got gives me an "argument list too long" -- which I had feared already... It has a size of 3 MB and Linux "only" allows 2... https://cloud.vates.fr/index.php/s/jynIvCjhso47nR8/download
On 2017-11-15 23:28, Max Reitz wrote:> On 2017-11-15 22:50, Gandalf Corvotempesta wrote: >> https://stacklet.com/downloads/XenServer-XVA-Template-Debian-7.8-Lightweight-x86 > > Hmmm, that gives me a timeout when downloading. And another image I got > gives me an "argument list too long" -- which I had feared already... > It has a size of 3 MB and Linux "only" allows 2...OK, being a bit clever helped a lot. https://xanclic.moe/convert-xva.rb -- does this work? (It seems to works on the two example images I found...) An example is in the code, you use it like this: $ ./convert-xva.rb ~/Downloads/stats-appliance-2.36.020502.xva Ref:73 $ ./convert-xva.rb ~/Downloads/stats-appliance-2.36.020502.xva Ref:73 \ -O qcow2 -p out.qcow2 (100.00/100%) $ ./qemu-img info out.qcow2 image: out.qcow2 file format: qcow2 virtual size: 80G (85916123136 bytes) disk size: 4.0G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false Max
On 2017-11-15 23:55, Max Reitz wrote:> On 2017-11-15 23:28, Max Reitz wrote: >> On 2017-11-15 22:50, Gandalf Corvotempesta wrote: >>> https://stacklet.com/downloads/XenServer-XVA-Template-Debian-7.8-Lightweight-x86 >> >> Hmmm, that gives me a timeout when downloading. And another image I got >> gives me an "argument list too long" -- which I had feared already... >> It has a size of 3 MB and Linux "only" allows 2... > > OK, being a bit clever helped a lot. > > https://xanclic.moe/convert-xva.rb -- does this work? > (It seems to works on the two example images I found...)Note that I have no idea how to get the total image size from the ova.xml (or wherever else), so you may have to call qemu-img resize on the output to get it to the right size. (It only creates an image that covers all of the input data blocks.) Max
Gandalf Corvotempesta
2017-Nov-16 10:08 UTC
Re: [Libguestfs] [Qemu-devel] [qemu-img] support for XVA
2017-11-15 23:55 GMT+01:00 Max Reitz <mreitz@redhat.com>:> https://xanclic.moe/convert-xva.rb -- does this work? > (It seems to works on the two example images I found...) > > An example is in the code, you use it like this: > > $ ./convert-xva.rb ~/Downloads/stats-appliance-2.36.020502.xva Ref:73It doesn't work on huge images: # time convert-xva.rb 20171115_193814_efff_.xva Ref:10 -O qcow2 disk1.qcow2 /usr/bin/convert-xva.rb:119:in `exec': Argument list too long - qemu-img (Errno::E2BIG) from /usr/bin/convert-xva.rb:119:in `<main>' real 9m41.414s user 0m19.280s sys 0m3.260s