User Tools

Site Tools


virt:snapshots

This is an old revision of the document!


Qemu Snapshots

  • To create a snapshot of BACKING_IMG.qed run the following command. Then use SNAP_IMG.qed as the source image in the vm. All changes will be written to SNAP_IMG.qed and BACKING_IMG.qed will be unmodified.
  • Running the same command will create a new snapshot and discard all changes to BACKING_IMG.qed
  • qcow2 and qed support snapshots
qemu-img create -f qed -b BACKING_IMG.qed SNAP_IMG.qed
  • You can chain snapshots so that following command would make a snapshot of a snapshot
qemu-img create -f qed -b SNAP_IMG.qed SNAP_OF_SNAP_IMG.qed 

List Snapshots

qemu-img snapshot -l /images/windows7.qcow2

Resize Qemu Image

qemu-img snapshot -l /images/sles11sp1.qcow2
virt/snapshots.1446232571.txt.gz · Last modified: 2015/10/30 14:16 by tschulz