Skip to contentSkip to conversation

qemu-img convert (vmdk)

Qemu-devel Antoni Villalonga 3 participants 5 messages May 5, 2015 – May 6, 2015

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
Antoni Villalonga
http://friki.cat/
#1 lore raw

Am 05.05.2015 um 19:01 hat Antoni Villalonga geschrieben:

Quoted 8 lines

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).

Quoted 6 lines

% 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

#3 lore raw
In reply to Antoni Villalonga

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

Quoted 21 lines · Antoni Villalonga

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

Signature · 2 lines
Antoni Villalonga
http://friki.cat/
Signature · 2 lines
Antoni Villalonga
http://friki.cat/
#2 lore raw
In reply to Kevin Wolf
Quoted 9 lines · Kevin Wolf

Am 05.05.2015 um 19:01 hat Antoni Villalonga geschrieben:

Quoted 8 lines

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).

Quoted 8 lines
Quoted 6 lines

% 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

#4 lore raw
In reply to Antoni Villalonga
Quoted 5 lines · Antoni Villalonga

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

Quoted 30 lines

Thanks

Quoted 21 lines · Antoni Villalonga

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

Signature · 2 lines
Antoni Villalonga
http://friki.cat/
Signature · 2 lines
Antoni Villalonga
http://friki.cat/