From: Avi Kivity <avi@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: sirmax <sirmax@noname.com.ua>, kvm@vger.kernel.org
Subject: Re: Migration issue - disk image was not updated.
Date: Mon, 18 Jul 2011 18:07:48 +0300 [thread overview]
Message-ID: <4E244C44.2060005@redhat.com> (raw)
In-Reply-To: <CAJSP0QV0FJyOmWU6WEuDKRHGkJtipPFGXGHjo1zK6tTSGdURbg@mail.gmail.com>
On 07/18/2011 05:39 PM, Stefan Hajnoczi wrote:
> On Mon, Jul 18, 2011 at 2:08 PM, sirmax<sirmax@noname.com.ua> wrote:
> > Node B with VM started:
> >
> > VM_IMAGE="/usr/local/virtual/img/win-xp-test-migrate.img"
> > VM_NAME="win-xp-test-m"
> > DEV0="kvm_m1"
> >
> > TMPDIR="/var/tmp/" /usr/bin/kvm \
> > -hda $VM_IMAGE \
> > -net nic -net tap,ifname=${DEV},script=no,downscript=no \
> > -boot c \
> > -vnc :15 \
> > -usbdevice tablet \
> > -usb \
> > -snapshot \
> > -monitor tcp:127.0.0.1:4415,server,nowait \
> > -monitor unix:/tmp/${VM_NAME}.fifo,server,nowait \
> > -incoming tcp:172.16.253.1:9999
>
> The -snapshot command works by creating a temporary qcow2 image file
> based on the disk image. In your case the effect is something like:
> qemu-img create -f qcow2 -o backing_file=$VM_IMAGE /tmp/...
>
> This temporary file is now your disk image. All write operations from
> the guest will touch the temporary file and *not* the base image
> ($VM_IMAGE).
>
> When you combine -snapshot with live migration QEMU creates the
> temporary image before performing the block migration. Therefore the
> block migration copies over all data into the temporary file (doh!).
>
> Seems like a special case to me that would need to be carefully fixed
> by performing snapshotting after block migration.
>
Why? It seems to me -snapshot means "don't write into this image".
What I'd expect is that all data be written into the temporary image,
perhaps with the optimization that unchanged data is taken from the
backing file.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-07-18 15:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 13:08 Migration issue - disk image was not updated sirmax
2011-07-18 14:39 ` Stefan Hajnoczi
2011-07-18 15:07 ` Avi Kivity [this message]
2011-07-18 19:38 ` sirmax
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=4E244C44.2060005@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=sirmax@noname.com.ua \
--cc=stefanha@gmail.com \
/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