Hyper-V has a nice feature of allowing a snapshot of a VM to be exported, meaning a new VM is created with the state of that snapshot. How can the same be accomplished in KVM ? Qcow2 images on CentOS 6.3 libvirt 0.10?
Asked
Active
Viewed 2,305 times
1 Answers
1
- Take snapshot
qemu-img convert
from the snapshot into a new image- create a VM on top of the new image (I'd also sysprep/sys-unconfig it beforehand, to avoid IP/MAC conflicts)

dyasny
- 18,802
- 6
- 49
- 64
-
Could you be a little more specific please? I assume you are talking about external snapshots, not internal. Could you show me the actual commands you would recommend? – Sep 18 '13 at 17:50
-
I'm not in front of a KVM enabled system at the moment unfortunately, so I can't provide exact commands. You can take snapshots of a running VM using `virsh` on fresh libvirt versions. The technique would beto take the first snapshot (Vm gets switched over to the new snap1), take another snapshot (snap2 - the VM is now running on this one), and now you can use qemu to create a new image based on snap1, without interrupting the running VM, which is using snap2. – dyasny Sep 18 '13 at 18:10