Lesson 6

Date: 2/22/2017
Network File System (NFS)
Linux System Administration


Exercise: VM setup for NFS

  • Clone kvm1 to a new NFS server VM host, master, by executing the command below:
    virt-clone --connect=qemu:///system -o kvm1 -n master -f /home/hostadm/KVM/master.img
    
  • Check if the new VM is in the list, start it, then login to its console:
    virsh list --all
    virsh start master
    virsh console master
    
  • Fix the host name and the MAC address:
    remove line with "127.0.0.1 kvm1" in /etc/hosts file, then
    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:
    virt-clone --connect=qemu:///system -o kvm1 -n n01 -f /home/hostadm/KVM/n01.img
    
    Fix the host name of n01 in the same way as for master VM above.


  • Take me to the Course Website