qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Xinyang Ge <xxg113@cse.psu.edu>
Cc: Hayawardh Vijayakumar <hvijay@cse.psu.edu>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] About VM fork in QEMU
Date: Mon, 28 Oct 2013 08:33:42 -0600	[thread overview]
Message-ID: <526E75C6.1020307@redhat.com> (raw)
In-Reply-To: <CACY857K6z+n1yqTSz8YZKsPf8-NnSnZ0ngqX17xKhn9o6QSwng@mail.gmail.com>

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

On 10/26/2013 11:37 AM, Xinyang Ge wrote:
>> External snapshots (via the blockdev-snapshot-sync QMP command) can be
>> taken in a matter of milliseconds if you only care about disk state.
>> Furthermore, if you want to take a snapshot of both memory and disk
>> state, such that the clone can be resumed from the same time, you can do
>> that with a guest downtime that only lasts as long as the
>> blockdev-snapshot-sync, by first doing a migrate to file then doing the
>> disk snapshot when the VM pauses at the end of migration.  Resuming the
>> original guest is fast; resuming from the migration file is a bit
>> longer, but it is still the fastest way possible to resume from a
>> memory+disk snapshot.  If you need anything faster, then yes, you would
>> have to write patches to qemu to attempt cloning via fork() that makes
>> sure to modify the active disk in use by the fork child so as not to
>> interfere with the fork parent.
> 
> I think migrating memory to file then doing external disk snapshot is
> exactly what we want. Since we are using libvirt to manage different
> VMs, could you give us some specific guides (or references) that how
> we could migrate memory state to file using virsh interfaces and do
> external snapshots?

virsh snapshot-create-as $dom $name --live --memspec /path/to/memoryfile

Libvirt usage questions might be better directed to the libvirt lists.

-- 
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: 621 bytes --]

  reply	other threads:[~2013-10-28 14:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-22 20:23 [Qemu-devel] About VM fork in QEMU Xinyang Ge
2013-10-22 22:10 ` Eric Blake
2013-10-23 14:36   ` Xinyang Ge
2013-10-26  4:15     ` Eric Blake
2013-10-26 17:37       ` Xinyang Ge
2013-10-28 14:33         ` Eric Blake [this message]
2013-10-28 17:30           ` Xinyang Ge
2013-10-26 19:12       ` Xinyang Ge
2013-10-24 19:10   ` Xinyang Ge

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=526E75C6.1020307@redhat.com \
    --to=eblake@redhat.com \
    --cc=hvijay@cse.psu.edu \
    --cc=qemu-devel@nongnu.org \
    --cc=xxg113@cse.psu.edu \
    /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).