qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-img convert (vmdk)
@ 2015-05-05 17:01 Antoni Villalonga
  2015-05-06 10:01 ` Kevin Wolf
  2015-05-06 10:15 ` Antoni Villalonga
  0 siblings, 2 replies; 5+ messages in thread
From: Antoni Villalonga @ 2015-05-05 17:01 UTC (permalink / raw)
  To: qemu-devel

Hi,

Is my first email to that list ;)


I can reproduce this bug with v2.2 and v2.3. I'm not sure about the results
after testing with v2.1 (doesn't show errors but seems to be still broken).

% qemu-img convert -f raw -O vmdk -o subformat=streamOptimized 100GB_inputfile.img outputfile0.vmdk
(no shown errors/warnings/info)
% qemu-img convert -f vmdk -O qcow2 outputfile0.vmdk outputfile11.qcow2
qemu-img: error while reading sector 278528: Invalid argument

Let me know if I can provide you more info.


Regards

-- 
Antoni Villalonga
http://friki.cat/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu-img convert (vmdk)
  2015-05-05 17:01 [Qemu-devel] qemu-img convert (vmdk) Antoni Villalonga
@ 2015-05-06 10:01 ` Kevin Wolf
  2015-05-06 10:50   ` Fam Zheng
  2015-05-06 10:15 ` Antoni Villalonga
  1 sibling, 1 reply; 5+ messages in thread
From: Kevin Wolf @ 2015-05-06 10:01 UTC (permalink / raw)
  To: Antoni Villalonga; +Cc: famz, qemu-devel, qemu-block

Am 05.05.2015 um 19:01 hat Antoni Villalonga geschrieben:
> Hi,
> 
> Is my first email to that list ;)
> 
> 
> I can reproduce this bug with v2.2 and v2.3. I'm not sure about the results
> after testing with v2.1 (doesn't show errors but seems to be still broken).
> 
> % qemu-img convert -f raw -O vmdk -o subformat=streamOptimized 100GB_inputfile.img outputfile0.vmdk
> (no shown errors/warnings/info)
> % qemu-img convert -f vmdk -O qcow2 outputfile0.vmdk outputfile11.qcow2
> qemu-img: error while reading sector 278528: Invalid argument
> 
> Let me know if I can provide you more info.

Fam, any idea?

Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu-img convert (vmdk)
  2015-05-05 17:01 [Qemu-devel] qemu-img convert (vmdk) Antoni Villalonga
  2015-05-06 10:01 ` Kevin Wolf
@ 2015-05-06 10:15 ` Antoni Villalonga
  2015-05-06 12:02   ` Fam Zheng
  1 sibling, 1 reply; 5+ messages in thread
From: Antoni Villalonga @ 2015-05-06 10:15 UTC (permalink / raw)
  To: qemu-devel


Hi again, it seems to be related to the subformat option. With the default
option seems to work fine.

I think StreamOptimized is mantatory for 'ova' files.

Thanks

On Tue, May 05, 2015 at 05:01:34PM +0000, Antoni Villalonga wrote:
> Hi,
> 
> Is my first email to that list ;)
> 
> 
> I can reproduce this bug with v2.2 and v2.3. I'm not sure about the results
> after testing with v2.1 (doesn't show errors but seems to be still broken).
> 
> % qemu-img convert -f raw -O vmdk -o subformat=streamOptimized 100GB_inputfile.img outputfile0.vmdk
> (no shown errors/warnings/info)
> % qemu-img convert -f vmdk -O qcow2 outputfile0.vmdk outputfile11.qcow2
> qemu-img: error while reading sector 278528: Invalid argument
> 
> Let me know if I can provide you more info.
> 
> 
> Regards
> 
> -- 
> Antoni Villalonga
> http://friki.cat/

-- 
Antoni Villalonga
http://friki.cat/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu-img convert (vmdk)
  2015-05-06 10:01 ` Kevin Wolf
@ 2015-05-06 10:50   ` Fam Zheng
  0 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2015-05-06 10:50 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: Antoni Villalonga, qemu-devel, qemu-block

On Wed, 05/06 12:01, Kevin Wolf wrote:
> Am 05.05.2015 um 19:01 hat Antoni Villalonga geschrieben:
> > Hi,
> > 
> > Is my first email to that list ;)
> > 
> > 
> > I can reproduce this bug with v2.2 and v2.3. I'm not sure about the results
> > after testing with v2.1 (doesn't show errors but seems to be still broken).
> > 
> > % qemu-img convert -f raw -O vmdk -o subformat=streamOptimized 100GB_inputfile.img outputfile0.vmdk
> > (no shown errors/warnings/info)
> > % qemu-img convert -f vmdk -O qcow2 outputfile0.vmdk outputfile11.qcow2
> > qemu-img: error while reading sector 278528: Invalid argument
> > 
> > Let me know if I can provide you more info.
> 
> Fam, any idea?

It's a bug. I can reproduce it with my 21G guest image. I'll take a look.

Fam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu-img convert (vmdk)
  2015-05-06 10:15 ` Antoni Villalonga
@ 2015-05-06 12:02   ` Fam Zheng
  0 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2015-05-06 12:02 UTC (permalink / raw)
  To: Antoni Villalonga; +Cc: qemu-devel

On Wed, 05/06 10:15, Antoni Villalonga wrote:
> 
> Hi again, it seems to be related to the subformat option. With the default
> option seems to work fine.
> 
> I think StreamOptimized is mantatory for 'ova' files.

I guess I see the problem now - the data is corrupted due to a wrong cluster
allocation during converting to streamOptimized. I'm testing a patch locally.

However there is another problem with streamOptimized which makes it refused in
exporting to VMware application. See also:

http://lists.gnu.org/archive/html/qemu-devel/2014-08/msg00467.html

https://lists.gnu.org/archive/html/qemu-devel/2015-03/msg00024.html

Fam

> 
> Thanks
> 
> On Tue, May 05, 2015 at 05:01:34PM +0000, Antoni Villalonga wrote:
> > Hi,
> > 
> > Is my first email to that list ;)
> > 
> > 
> > I can reproduce this bug with v2.2 and v2.3. I'm not sure about the results
> > after testing with v2.1 (doesn't show errors but seems to be still broken).
> > 
> > % qemu-img convert -f raw -O vmdk -o subformat=streamOptimized 100GB_inputfile.img outputfile0.vmdk
> > (no shown errors/warnings/info)
> > % qemu-img convert -f vmdk -O qcow2 outputfile0.vmdk outputfile11.qcow2
> > qemu-img: error while reading sector 278528: Invalid argument
> > 
> > Let me know if I can provide you more info.
> > 
> > 
> > Regards
> > 
> > -- 
> > Antoni Villalonga
> > http://friki.cat/
> 
> -- 
> Antoni Villalonga
> http://friki.cat/
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-06 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 17:01 [Qemu-devel] qemu-img convert (vmdk) Antoni Villalonga
2015-05-06 10:01 ` Kevin Wolf
2015-05-06 10:50   ` Fam Zheng
2015-05-06 10:15 ` Antoni Villalonga
2015-05-06 12:02   ` Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).