Received: from [140.186.70.92] (port=36081 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxNmP-0003vU-0i for qemu-devel@nongnu.org; Wed, 09 Mar 2011 13:06:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxNmM-0002HR-SK for qemu-devel@nongnu.org; Wed, 09 Mar 2011 13:06:36 -0500 Received: from web161607.mail.bf1.yahoo.com ([98.139.210.176]:43394) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PxNmM-0002H9-P6 for qemu-devel@nongnu.org; Wed, 09 Mar 2011 13:06:34 -0500 Message-ID: <732519.22405.qm@web161607.mail.bf1.yahoo.com> Date: Wed, 9 Mar 2011 10:06:33 -0800 (PST) From: SAURAV LAHIRI MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-694468262-1299693993=:22405" Subject: [Qemu-devel] Issue with snapshot outside qcow2 disk - qemu 0.14.0 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-694468262-1299693993=:22405 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello, I attempted to create snapshots outside the original qcow2 disk, a feature = that is available with 0.14.0, but facing an unexpected behaviour as descri= bed below. Any help is greatly appreciated. I am using qemu version 0.14 # qemu --version QEMU emulator version 0.14.0, Copyright (c) 2003-2008 Fabrice Bellard # qemu-img --version qemu-img version 0.14.0, Copyright (c) 2004-2008 Fabrice Bellard usage: qemu-img command [command options] QEMU disk image utility Following steps were executed to copy a snapshot outside the original qcow2= but looks like there is an issue. 1. VM(vm1) brought up with a qcow2 image(/home/user1/lucid-vm2). This is a = lucid 10.04 VM. 2. Next snapshot created for the qcow2 =A0=A0 #qemu-img snapshot -c snap1 /home/user1/lucid-vm2 3. Lets see if the snapshot got created. =A0=A0 =A0# qemu-img snapshot -l /home/user1/lucid-vm2=20 =A0=A0 =A0Snapshot list: =A0=A0 =A0ID=A0=A0=A0=A0=A0=A0=A0 TAG=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 VM SIZE=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 DATE=A0= =A0=A0=A0=A0=A0 VM CLOCK =A0=A0 =A01=A0=A0=A0=A0=A0=A0=A0=A0 snap1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 0 2011-03-09 23:17:53=A0=A0 00:00:00.000 4. Next inside the running VM(vm2) a new file is created. Since the snapsho= t was =A0=A0=A0 created before creating this file. The snapshot should not have t= his file. =A0=A0 #touch samplefile 5. Now the snapshot snap1 is copied outside the original qcow2 image. =A0=A0 qemu-img convert -f qcow2 -O qcow2 -s snap1 /home/user1/lucid-vm2 /h= ome/user1/lucid-vm2-snap1 6. Next shutdown VM(vm1) and bring it up the snapshot image /home/user1/luc= id-vm2-snap1.=20 =A0=A0 Since the snapshot was created before creating the file named "sampl= efile" it is to =A0=A0 be expected that the file should not be there in the snapshot image.= But the file does appear=A0 in the snapshot image =A0=A0 #ls samplefile =A0=A0 samplefile =A0 =A0 Regards sl =0A=0A=0A --0-694468262-1299693993=:22405 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,
I attempted to create snapshots out= side the original qcow2 disk, a feature that is available with 0.14.0, but = facing an unexpected behaviour as described below. Any help is greatly appr= eciated.

I am using qemu version 0.14

# qemu --version
QEM= U emulator version 0.14.0, Copyright (c) 2003-2008 Fabrice Bellard

<= br># qemu-img --version
qemu-img version 0.14.0, Copyright (c) 2004-2008= Fabrice Bellard
usage: qemu-img command [command options]
QEMU disk = image utility


Following steps were executed to copy a snapshot o= utside the original qcow2 but looks like there is an issue.

1. VM(vm= 1) brought up with a qcow2 image(/home/user1/lucid-vm2). This is a lucid 10= .04 VM.

2. Next snapshot created for the qcow2
   #qemu= -img snapshot -c snap1 /home/user1/lucid-vm2

3. Lets see if the snapshot got created.
    # qemu-img snapshot -l /home/u= ser1/lucid-vm2
    Snapshot list:
    = ID        TAG    &nb= sp;            VM SI= ZE            &= nbsp;   DATE       VM CLOCK
&nbs= p;   1         snap1 = ;            &n= bsp;       0 2011-03-09 23:17:53   = 00:00:00.000


4. Next inside the running VM(vm2) a new file is cr= eated. Since the snapshot was
    created before creating= this file. The snapshot should not have this file.
   #touch = samplefile

5. Now the snapshot snap1 is copied outside the original qcow2 image.
   qemu-img convert -f qcow2 -O qcow2 -= s snap1 /home/user1/lucid-vm2 /home/user1/lucid-vm2-snap1

6. Next sh= utdown VM(vm1) and bring it up the snapshot image /home/user1/lucid-vm2-sna= p1.
   Since the snapshot was created before creating the fil= e named "samplefile" it is to
   be expected that the file sho= uld not be there in the snapshot image. But the file does appear  in t= he snapshot image
   #ls samplefile
   samplefile=
   

Regards
sl


=0A=0A= =0A=0A --0-694468262-1299693993=:22405--