First create KVM virtual machine install and configure.
The virtual disk of this system can be used as the base image for new linked clones.
Creating Snapshots
qemu-img create -f qcow2 -b baseimage.img newclone.img
Base image is baseimage.img and a new snapshot file is created as newclone.img. Do not turn on the virtual machine of base image. Subsequent changes will be committed to this snapshot.
Show Details of the snapshot
#qemu-img info newclone.img
image: newclone.img
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 24M
cluster_size: 65536
backing file: baseimage.img (actual path: baseimage.img)
Creating Temporary Snapshots
qemu -hda baseimage.img -snapshot
This temporary snapshot will be deleted on shutdown of the virtual machine