LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Error while reading when converting qcow disk to raw (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/error-while-reading-when-converting-qcow-disk-to-raw-927915/)

Mark_667 02-06-2012 11:33 AM

Error while reading when converting qcow disk to raw
 
I'm trying to convert a qcow2 file to raw so I can store it on a LVM. I'm using the following:
Code:

#qemu-img convert -f qcow2 ./vm-101-disk-1.qcow2 -O raw  /dev/vg0/VM101
But keep getting:
Code:

qemu-img: error while reading
I've found plenty of people with the same problem on Google but no solutions.

jefro 02-06-2012 04:37 PM

Don't tell it what the input is.

I don't think the ./ helps either. Do the conversion in the subfolder so that the file name would be only needed.

qemu-img convert -O qcow2 test.vmdk test.qcow2

dyasny 02-07-2012 04:44 AM

get rid of the ./

Mark_667 02-07-2012 08:04 AM

Thanks, I successfully converted a qcow2 file using the changes jefro suggested, but for some reason I get the same error on another qcow2 file using the same format as for the successful conversion?

jefro 02-07-2012 02:59 PM

qemu-img is not able to find or read the file is what it is saying. Path maybe?


All times are GMT -5. The time now is 02:52 PM.