From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Lx3-0000c1-QY for qemu-devel@nongnu.org; Thu, 29 Sep 2011 15:07:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9Lx2-0002ft-GT for qemu-devel@nongnu.org; Thu, 29 Sep 2011 15:07:21 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:36851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Lx2-0002fp-8y for qemu-devel@nongnu.org; Thu, 29 Sep 2011 15:07:20 -0400 Received: by fxh13 with SMTP id 13so2214750fxh.4 for ; Thu, 29 Sep 2011 12:07:19 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 29 Sep 2011 21:07:19 +0200 Message-ID: From: Robert P Content-Type: multipart/alternative; boundary=00151747c324bb67e004ae1937f2 Subject: [Qemu-devel] QEMU Live Snapshots / Commiting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --00151747c324bb67e004ae1937f2 Content-Type: text/plain; charset=ISO-8859-1 Hello, I still have a problem with the "Live Snapshot" feature of QEMU .... and before migrating to XEN, VMware or something similare, a quick post here: OS: Ubuntu Natty 64bit First, i'm starting my KVM Machine with an image like this: qemu-img create -f qcow2 -o backing_file= If i stop the KVM Machine later, and i commit into , all the new changes are in the . That would be ok. --- The Problem: Actually i'm trying to create "live snapshots" periodically while the machine is running, like this (host2Qemu is just a special function of mine (it works), to send a string to qemu-monitor). host2Qemu "cont" host2Qemu "guest-agent-fsfreeze" host2Qemu "stop" host2Qemu "info block" host2Qemu "snapshot_blkdev ide0-hd0 qcow2" host2Qemu "cont" host2Qemu "guest-agent-fsthaw" My idea is, to commit them one by one afterwards, when the KVM Machine is down into the BaseImage. So, the Snapshots are beeing written, and everytime i call that function new data is beeing written to the new "alllocated" snapshot. BUT, committing of that live-snapshots fails, and i've no idea why ?! I would commit it like that: qemu-img commit -f qcow2 qemu-img commit -f qcow2 qemu-img commit -f qcow2 ... and so on. So in that constellation, only changes from the Snapshot, with KVM was started are in the Base-Image. And another question: I have a Windows XP Guest also in KVM, but the write performance into the (qcow2 Image) (scp, rsync, e.g) Guest seems to be pretty poor - Are there any hints or is there a special Parameter to avoid this? The write Performance to a Linux Guest with a similar configuration and also qcow2 seems to very close to the "native" Performance. Thanks. Robert --00151747c324bb67e004ae1937f2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I still have a problem with the &= quot;Live Snapshot" feature of QEMU .... and before migrating to XEN, = VMware or something similare, a quick post here:

OS: Ubuntu Natty 6= 4bit

First, i'm starting my KVM Machine with an image like this:
qemu-img create -f qcow2 -o backing_file=3D<NameOfBaseImage> <Snap= shotname>

If i stop the KVM Machine later, and i commit <Snaps= hotname> into <NameOfBaseImage>, all the new changes are in the &l= t;NameOfBaseImage>.
That would be ok.

---

The Problem:

Actually i'm = trying to create "live snapshots" periodically=A0 while the machi= ne is running, like this (host2Qemu is just a special function of mine (it = works), to send a string to qemu-monitor).

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 host2Qemu "cont"= ;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 host2Qemu "guest-ag= ent-fsfreeze"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 host2Qe= mu "stop"

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 host2Qemu "info block&qu= ot;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 host2Qemu "snapsh= ot_blkdev ide0-hd0 <Snapshot1 (example)> qcow2"

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 host2Qemu "cont"= ;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 host2Qemu "guest-agent-f= sthaw"

My idea is, to commit them one by one afterwards, when t= he KVM Machine is down into the BaseImage.

So, the Snapshots are be= eing written, and everytime i call that function new data is beeing written= to the new "alllocated" snapshot.
BUT, committing of that live-snapshots fails, and i've no idea why ?!
I would commit it like that:
=A0qemu-img commit -f qcow2 <Snap= shot, with KVM was started first>
qemu-img commit -f qcow2 <Snapsh= ot1, newer>
qemu-img commit -f qcow2 <Snapshot1, more new>
...
and so on. <= br>
So in that constellation, only changes from the Snapshot, with KVM w= as started are in the Base-Image.

And another question: I have a Windows XP Guest also in KVM, but the wr= ite performance into the (qcow2 Image) (scp, rsync, e.g) Guest seems to be = pretty poor - Are there any hints or is there a special Parameter to avoid = this?
The write Performance to a Linux Guest with a similar configuration and als= o qcow2 seems to very close to the "native" Performance.

= Thanks.
Robert


--00151747c324bb67e004ae1937f2--