LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization
User Name
Password
Linux - Virtualization This forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-06-2012, 11:33 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.04
Posts: 231

Rep: Reputation: 25
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.
 
Old 02-06-2012, 04:37 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 5,951

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
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
 
Old 02-07-2012, 04:44 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 566

Rep: Reputation: 58
get rid of the ./
 
Old 02-07-2012, 08:04 AM   #4
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.04
Posts: 231

Original Poster
Rep: Reputation: 25
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?
 
Old 02-07-2012, 02:59 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 5,951

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Error When reading DVD mobone Slackware - Installation 1 03-06-2007 03:33 PM
raw sector reading from an ext3-formatted USB disk on Windows XP i.you Linux - Software 1 02-22-2007 07:23 PM
Converting RAW files to FAT32 webster72n General 2 07-23-2006 07:48 AM
Converting Raw file system...???? avols143 General 4 07-02-2004 10:14 PM
Reading raw hard disk sectors villie Programming 4 05-13-2004 12:18 AM


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

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration