[pve-devel] qemu-server : RFC: template && vm cloning (linked && copy clone) v6

Alexandre Derumier aderumier at odiso.com
Tue Dec 18 10:14:49 CET 2012


changelog:
-rebase on last git

-extend template concept to copy clone (aka disk copy)

I think it's good to have template for copy, so It can protect the sourcevm during the disk copy (avoid startvm,rollback,delete,snapshot delete..).
As template should be a locked image in a point of time.
Copy clone works also with snapshot (vm online/offline) as source for qcow2,rbd,sheepdog. (need more work for nexenta)

It's also iso with vmware implementation, so users will not be lost.

command line:

linked clone
-------------
qm create <vmid> --clonefrom <vmidsrc> (--snapname <snap>) (--clonemode linked)

copy clone (target storage = source storage)
----------------------------------------------
qm create <vmid> --clonefrom <vmidsrc> (--snapname <snap>) --clonemode copy

copy clone (target storage != source storage)
----------------------------------------------
qm create <vmid> --clonefrom <vmidsrc> (--snapname <snap>) --clonemode copy --virtio0 storeid:(fmt) --virtio1 nfstorage:qcow2 --virtio2 rbdstorage:


I'm thinking to implement livevm copy (with new backup infrastucture) without template flag.






More information about the pve-devel mailing list