Cloning a KVM Virtual Machine¶
VSI recommends cloning your KVM virtual machine using CLI to avoid data loss and ensure proper cloning.
-
Turn off your virtual machine using the
virsh destroy vm-namecommand. -
Run the following:
virt-clone -o original-vm-name -n new-vm-name --auto-clone --nonsparseThis command will clone the VM along with the associated disks and ensure that they are thick-provisioned.
Note
Thick provisioning of OpenVMS disks corresponds to full preallocation of disk space in KVM virtual machines configuration.