qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Merging backing file with new image
@ 2012-04-02  6:48 PANKAJ RAWAT
  2012-04-02  6:51 ` PANKAJ RAWAT
  0 siblings, 1 reply; 3+ messages in thread
From: PANKAJ RAWAT @ 2012-04-02  6:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 29 bytes --]

Hi all,


-- 
*Pankaj Rawat*

[-- Attachment #2: Type: text/html, Size: 98 bytes --]

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

* [Qemu-devel] Merging backing file with new image
  2012-04-02  6:48 [Qemu-devel] Merging backing file with new image PANKAJ RAWAT
@ 2012-04-02  6:51 ` PANKAJ RAWAT
  2012-04-02 13:58   ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: PANKAJ RAWAT @ 2012-04-02  6:51 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

Hi all
i am using qcow2 image format , I create a backing file and to the new
image i preform some I/O

qemu-img create -f qcow2 -b snap1 guestqcow2

Now I wanted to merge snap1 with guestqcow2. Is their is any command which
can merge both disk into one single file


-- 
*Pankaj Rawat*

[-- Attachment #2: Type: text/html, Size: 380 bytes --]

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

* Re: [Qemu-devel] Merging backing file with new image
  2012-04-02  6:51 ` PANKAJ RAWAT
@ 2012-04-02 13:58   ` Eric Blake
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Blake @ 2012-04-02 13:58 UTC (permalink / raw)
  To: PANKAJ RAWAT; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]

On 04/02/2012 12:51 AM, PANKAJ RAWAT wrote:
> Hi all
> i am using qcow2 image format , I create a backing file and to the new
> image i preform some I/O
> 
> qemu-img create -f qcow2 -b snap1 guestqcow2
> 
> Now I wanted to merge snap1 with guestqcow2. Is their is any command which
> can merge both disk into one single file

Using 'qemu-img commit guestqcow2' will update snap1 to contain the
contents of both files (this form of backwards merging will break
anything else that used snap1 as a backing file, and can only be done
offline, when no qemu process has guestqcow2 open).

You can also use the block_stream monitor command under a running qemu
to merge the contents of snap1 into guestqcow2 (forward merging).  The
offline counterpart would be using 'qemu-img rebase ...' in safe mode,
or using 'qemu-img convert ...' to create a new single file with the
combined contents of the original guestqcow2 and its backing file, then
rename that new file onto guestqcow2.

You seem to be asking a lot of questions about qcow2 lately; I'd
recommend that you read the existing documentation (man qemu-img, look
at docs/specs/qcow2.txt, and so forth) first.

-- 
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

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

end of thread, other threads:[~2012-04-02 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-02  6:48 [Qemu-devel] Merging backing file with new image PANKAJ RAWAT
2012-04-02  6:51 ` PANKAJ RAWAT
2012-04-02 13:58   ` Eric Blake

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