Exercise: VM setup for NFS
Clone kvm1 to a new NFS server VM host, master, 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 master -f /home/hostadm/KVM/master.img
Fix the host name and the MAC address:
virsh list --all
virsh start master
virsh console master
remove line with "127.0.0.1 kvm1" in /etc/hosts file,
replace kvm1 with master in /etc/hostname file.
Reboot the VM.
After reboot, the new VM should come up with the correct host name and the MAC address.
Clone kvm1 to a new NFS client VM host, n01, by executing the command below:
Fix the host name of n01 in the same way as for master VM above.
virt-clone --connect=qemu:///system -o kvm1 -n n01 -f /home/hostadm/KVM/n01.img