From: Stefan Hajnoczi <stefanha@gmail.com>
To: Ottavio <pr0f3ss0r1492@yahoo.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Correct syntax for named snapshots
Date: Thu, 27 Oct 2011 08:29:07 +0100 [thread overview]
Message-ID: <20111027072907.GD32287@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <CAEJNuHxWFz_xJy+mhUVaGmkcSs83ZV3JptmEJbYcGQmg39b3UQ@mail.gmail.com>
On Wed, Oct 26, 2011 at 05:24:01PM +0100, Ottavio wrote:
> According to the latest doc file you create a named snapshot like this:
>
> qemu-img snapshot [-l | -a snapshot | -c snapshot | -d snapshot] base-image.img
>
> Is this other following syntax still supported or deprecated:
>
> "qemu-img create -f qcow2 -b base-image.img snapshot.img" ?
>
> The latter is on the qemu wiki but not on the qemu-doc.html file.
>
> Can you cc: me please? Thanks
These two commands do different things. There are two different
snapshot concepts: internal and external snapshot.
Internal snapshots can be created with qcow2 and can be manipulated with
the qemu-img snapshot command. They are called "internal" because all
snapshot data is part of the same image file; you can have a single
qcow2 file that contains 10 different snapshots.
External snapshots can be created with any format that supports backing
files (qcow2, qed, vmdk, ...) and is created with qemu-img create -o
backing_file=base-image.img -f qcow2 vm001.qcow2 (or with the older -b
option). They are called "external" snapshots because they involve
multiple files and data is stored separately. In the command-line I
gave you could access base-image.img in read-only fashion - the base
image is the "snapshot" and the vm001.qcow2 image file contains data
written since creating the new image file.
The word "snapshot" is overloaded in QEMU, we use it for several
different things, but I hope this explanation helps.
Stefan
next prev parent reply other threads:[~2011-10-27 8:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-26 16:24 [Qemu-devel] Correct syntax for named snapshots Ottavio
2011-10-27 7:29 ` Stefan Hajnoczi [this message]
2011-10-27 8:24 ` Philipp Hahn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111027072907.GD32287@stefanha-thinkpad.localdomain \
--to=stefanha@gmail.com \
--cc=pr0f3ss0r1492@yahoo.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).