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