Lesson 13

Date: 4/25/2018
High Performance Computing (part II: MPI)
Linux System Administration


Cluster VM node deployment
Exercise
  • Clone your n01 virtual machine into a new VM, n02.
    virsh shutdown n01
    virt-clone --connect=qemu:///system -o n01 -n n02 -f /home/hostadm/KVM/n02.img
    

  • Start n02 and login to its console:
    virsh start n02
    virsh console n02
    

    Change the host name for n02 in file /etc/hostname, then reboot
  • Start n01
    virsh start n01
    

  • On the master VM, import SSH public key of n02:
    ssh-keyscan -t rsa n02  >> /etc/ssh/ssh_known_hosts
    
  • Edit file /etc/exports and add n01 to the NFS clients for directory /NFS/home:
    /NFS/home  n01(rw)
    /NFS/home  n02(rw)
    
    Run command
    exportfs -a
    

  • On both n01 and n02 nodes, import the SSH public keys of both the nodes:
    ssh-keyscan -t rsa n01  >> /etc/ssh/ssh_known_hosts
    ssh-keyscan -t rsa n02  >> /etc/ssh/ssh_known_hosts
    

  • From master try to SSH to n02 as user edward. It should allow SSH login without password authentication. Try also SSH from n02 to n01.





  • Take me to the Course Website