WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Materializing a Qcow image (qcow2raw) in Xen 3.2.1

To: Stefan de Konink <skinkie@xxxxxxxxx>
Subject: Re: [Xen-users] Materializing a Qcow image (qcow2raw) in Xen 3.2.1
From: Massimo Mongardini <massimo.mongardini@xxxxxxxxx>
Date: Sat, 26 Jul 2008 01:16:58 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 25 Jul 2008 17:17:30 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=eNTOOelMwVfljV5qxyEe6bTZgvaReft92EnkPGVUKyg=; b=Nzt73dQ4R0tG3VzRvwQHngFqT5bunEa2AEYCEUONGxJrAQ5mLxWdSxTK5V0mJ652+i r4eT68bvYle//UM2pdbW8+qul1dj6MUqq0rYgYUJ8rHwYNqNTU7jJQR8ymXb0XHkRYL1 Ve7Pn6CgNC6Zjy7bx4TdCSzu+u0zUZFHNhkF4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=EXx2GDfoJYXfYgkdpbsifKOjo1/jcUNZdoKH5tzIef4Vh+0RzdZWW6kUrU73x+Iffy xQJ8OPi4fmZGxueTESpQZe8lOre9aYTSGHkZdTgkMy0IAtN599tufYaZTqPzgaSl0oIP dEMZ6s0EkhEefQtKQl2ax+0oZOO/MIhMGLipc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080726011533.I85999-100000@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20080726011533.I85999-100000@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (X11/20080213)
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users