> From: [EMAIL PROTECTED] on behalf of Slohm Gadaburi
> Sent: Mon 03/12/2007 12:10
> To: kvm-devel@lists.sourceforge.net
> Subject: [kvm-devel] VM Snapshots ?
>
> Hi all..
>
> I want to use VM Snapshots.. But I read QEMU's docs saying
> that one must use qcow2 file image for that. The problem is that
> My Ubuntu 7.04-based qemu-img (v 0.8.2) has only qcow...
>
> thank you
> slohm
With qemu v 0.8.2 one can save/load the VM state into/from a file (using
monitor commands savevm/loadvm)
This is not a "real" VM snapshot, as the disk image changes when the guest
runs, but it works fairly well.
A theoretical, never-tried, possibly disk-consuming method for creating "real"
VM snapshot is:
1. create a new "snapshot" image S1 based on the original image S0 (using
"qemu-img create -b S0 -f qcow S1 <SIZE>")
2. start the guest with that image ("-hda S1")
When you want to create a snapshot: from qemu monitor
3. stop
4. savevm PATH_TO_SAVED_STATE_DIR/state1
5. quit
6. copy S1 to a S2
S1+state1 is the VM snapshot
To continue running the guest: From linux shell
7. start the guest with S2 image and in stopped mode ("-S" command line
argument)
>From qemu monitor
8. loadvm PATH_TO_SAVED_STATE_DIR/state1
9. cont
To go back to your VM snapshot, follow steps 7-9 when using S1 instead of S2.
Uri.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel