====== VM clone ======
To create and clone VMs
# apt-get install virtinst
Add new logical volume for VM clone: same size as original
# lvdisplay kvm2
...
--- Logical volume ---
LV Name /dev/kvm2/tubu1
VG Name kvm2
LV UUID ******
LV Write Access read/write
LV Status available
# open 0
LV Size 7.81 GiB
Current LE 2000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
# lvcreate -l 2000 -n tubu1-clone iscsi2
Clone VM
# virt-clone --original tubu1 --name tubu1-clone --file /dev/mapper/iscsi2-tubu1-clone --prompt
The new guest tubu1-clone is listed in KVM host and ready to run.
[[hypervisor:virtbackup|Virt-backup.pl: backup and restore]] ⇒
⇐ [[hypervisor:iscsi1|iSCSI as PV for KVM Host LVM]]
⇑ [[hypervisor:start|Hypervisor]]