Stefan de Konink
2008-Jul-25 16:10 UTC
[Xen-users] Materializing a Qcow image (qcow2raw) in Xen 3.2.1
I''m currently having serious trouble to convert a qcow image back to a raw image. Could anyone please elaborate how to invoke qcow2raw without getting: QCOW file opened, size 16777216 [ ]AIO FAILURE: res [-16]! AIO FAILURE: res [-16]! etc. Stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Massimo Mongardini
2008-Jul-25 23:05 UTC
Re: [Xen-users] Materializing a Qcow image (qcow2raw) in Xen 3.2.1
Stefan de Konink wrote:> I''m currently having serious trouble to convert a qcow image back to a raw > image. Could anyone please elaborate how to invoke qcow2raw without > getting: > > QCOW file opened, size 16777216 > [ ]AIO FAILURE: res [-16]! > AIO FAILURE: res [-16]! > etc. > > > Stefan > > >have you tried with qemu-img convert -f qcow filename.qcow -O raw filename.img m. -- Massimo Mongardini ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ echo ''Jg!J!hjwf!zpv!bo!bqqmf!boe!zpv!hjwf!nf!bo!bqqmf-!uifo!xf!xjmm!ibwf!bo!bqqmf!fbdi/!Cvu!jg!J!hjwf!zpv!bo!jefb!boe!zpv!hjwf!nf!bo!jefb-!xf!xjmm!ibwf!uxp!jefbt!fbdi!'' | perl -pe ''s/(.)/chr(ord($1)-1)/ge'' ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ http://massimo.mongardini.it http://www.getthefacts.it http://www.mongardini.it/pizza-howto ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan de Konink
2008-Jul-25 23:16 UTC
Re: [Xen-users] Materializing a Qcow image (qcow2raw) in Xen 3.2.1
On Sat, 26 Jul 2008, Massimo Mongardini wrote:> have you tried with > qemu-img convert -f qcow filename.qcow -O raw filename.imgYes, but it seems that the incompatibility between Xen and Qcow results in broken output. At least, I cannot mount that output, using mount -o loop etc. Stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Massimo Mongardini
2008-Jul-26 00:16 UTC
Re: [Xen-users] Materializing a Qcow image (qcow2raw) in Xen 3.2.1
Stefan de Konink wrote:> On Sat, 26 Jul 2008, Massimo Mongardini wrote: > > >> have you tried with >> qemu-img convert -f qcow filename.qcow -O raw filename.img >> > > Yes, but it seems that the incompatibility between Xen and Qcow results in > broken output. At least, I cannot mount that output, using mount -o loop > etc. > > > Stefan > >Stefan, I am not sure that I am following you... you can''t loopmount a qcow image at least not directly... plus it will be probably partitioned inside, so in order to mount it you will have to convert it to raw, losetup to a loop device, look at the partition table, and losetup again on the offset of the partition you want. (look at my other post [Xen-users] Creating a Bootable Image file) for this. What is your goal? M. -- Massimo Mongardini ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ echo ''Jg!J!hjwf!zpv!bo!bqqmf!boe!zpv!hjwf!nf!bo!bqqmf-!uifo!xf!xjmm!ibwf!bo!bqqmf!fbdi/!Cvu!jg!J!hjwf!zpv!bo!jefb!boe!zpv!hjwf!nf!bo!jefb-!xf!xjmm!ibwf!uxp!jefbt!fbdi!'' | perl -pe ''s/(.)/chr(ord($1)-1)/ge'' ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ http://massimo.mongardini.it http://www.getthefacts.it http://www.mongardini.it/pizza-howto ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan de Konink
2008-Jul-26 08:14 UTC
Re: [Xen-users] Materializing a Qcow image (qcow2raw) in Xen 3.2.1
On Sat, 26 Jul 2008, Massimo Mongardini wrote:> I am not sure that I am following you... > you can''t loopmount a qcow image at least not directly... plus it will > be probably partitioned inside, so in order to mount it you will have to > convert it to raw, losetup to a loop device, look at the partition > table, and losetup again on the offset of the partition you want. (look > at my other post [Xen-users] Creating a Bootable Image file) for this. > What is your goal?Your assumptions are wrong. I can qcow-create and use it. (no partitioning) But converting this image back to raw is broken. I cannot mount the resulting image with the conversion method nor the qcow2raw method. Stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users