Lesson 6

Date: 2/19/2014
Network File System (NFS)
Linux for Engineering and IT Applications


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,
    cp /dev/null /etc/udev/rules.d/70-persistent-net.rules
    reboot
    
    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 and the MAC address of n01 by following the procedure similar to that with master above.


  • Take me to the Course Website