============================================================= root@images$ qemu-img convert -f raw -O qcow2 -o preallocation=metadata f17test.img f17test.qcow2 root@images$ ls -lash f17test.qcow2 1.4G -rw-r--r--. 1 root root 11G May 13 23:05 f17test.qcow2 root@images$ ls -l f17test.qcow2 -rw-r--r--. 1 root root 10739318784 May 13 23:05 f17test.qcow2 root@images$ root@images$ fallocate -l 10739318784 f17test.qcow2 root@images$ ls -lash f17test.qcow2 11G -rw-r--r--. 1 root root 11G May 13 23:05 f17test.qcow2 root@images$ ============================================================= ============================================================= root@~$ virsh list Id Name State ---------------------------------------------------- 11 f17test running root@~$ ============================================================= root@~$ virsh domblklist f17test --details Type Device Target Source ------------------------------------------------ file disk vda /var/lib/libvirt/images/f17test.qcow2 root@~$ ============================================================= root@~$ virsh snapshot-list f17test Name Creation Time State ------------------------------------------------------------ root@~$ ============================================================= root@~$ virsh snapshot-create-as f17test cleanf17 cleanf17-box --diskspec vda,file=/var/lib/libvirt/images/snap-f17test.qcow2 --disk-only Domain snapshot cleanf17 created root@~$ ============================================================= root@~$ virsh snapshot-list f17test Name Creation Time State ------------------------------------------------------------ cleanf17 2012-05-14 00:02:54 +0530 disk-snapshot root@~$ ============================================================= virsh # snapshot-dumpxml f17test cleanf17 --security-info cleanf17 cleanf17-box disk-snapshot 1336933974 f17test 027ffca8-00b8-3cff-b8f6-bf8c4ec655a7 2097152 2097152 2 hvm destroy restart restart /usr/bin/qemu-kvm