Exercise: Cloning VMs with virt-clone
Clone kvm1 to a new VM host, kvm3, by executing the command below:
Check if the new VM is in the list, start it, then login to its console:
virt-clone --connect=qemu:///system -o kvm1 -n kvm3 -f /home/hostadm/KVM/kvm3.img
Fix the host name and the MAC address:
virsh list --all
virsh start kvm3
virsh console kvm3
remove line with "127.0.0.1 kvm1" in /etc/hosts file,
replace kvm1 with kvm3 in /etc/hostname file.
After reboot, the new VM should come up with the correct host name and the MAC address.