public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* disk image snapshot functionality
@ 2010-09-28 20:24 Peter Doherty
  2010-09-29  6:07 ` Takuya Yoshikawa
  2010-09-29  8:39 ` Stefan Hajnoczi
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Doherty @ 2010-09-28 20:24 UTC (permalink / raw)
  To: kvm

Hi,

I'm using Centos5.5 on the host, and the KVM that's available in the  
repos.  I'm using linux VMs too.  My disk images are qcow2 files.
Here's what I want:
To be able to, on the host, create a snapshot of the guest's disk  
image, without shutting down the guest, so that I can then restore  
back to a point in time for the guest.
I thought I could do this with the qcow2 images.
I've used:
qemu-img snapshot -c snapname disk_image.qcow2
to create the snapshot.

It doesn't work.  The snapshots claim to be created, but if I shut  
down the guest, apply the snapshot
( qemu-img snapshot -a snapname disk_image.qcow2 )
the guest either:
a.) no longer boots (No bootable disk found)
b.) boots, but is just how it was when I shut it down (it hasn't  
reverted back to what it was like when the snapshot was made)


It makes no sense.  I can sometimes apply the first snapshot, and it  
has worked...but subsequent snapshots are a no go.
One thing that is suspicious is that the VM SIZE and CLOCK are zero:
# qemu-img snapshot -l test1.qcow2
Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
1         with100mb                 0 2010-09-28 11:48:23   00:00:00.000
2         with200mb                 0 2010-09-28 11:50:53   00:00:00.000
3         with300mb                 0 2010-09-28 11:52:49   00:00:00.000
4         whenoff                   0 2010-09-28 11:56:41   00:00:00.000


# /usr/libexec/qemu-kvm --help
QEMU PC emulator version 0.9.1 (kvm-83-maint-snapshot-20090205),  
Copyright (c) 2003-2008 Fabrice Bellard


I can't find much info about using qcow2 images when I search.  Any  
help would be appreciated.

Thanks.

Peter

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-09-30 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 20:24 disk image snapshot functionality Peter Doherty
2010-09-29  6:07 ` Takuya Yoshikawa
2010-09-29  8:39 ` Stefan Hajnoczi
2010-09-29 14:35   ` Peter Doherty
2010-09-30  8:31     ` Stefan Hajnoczi
2010-09-30 13:49       ` Peter Doherty
2010-09-30 15:28         ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox