Skip to content
Snippets Groups Projects
Weeks 8-9: HPC Clusters using OpenHPC and SLURM 2.01 KiB
Newer Older
Chinthak Murali's avatar
Chinthak Murali committed
Mentor: Hung

Hung created the user and password as following:

username: admin or root
password: openhpctraining2024


Hung has already done the following part and it is same and you don't have to do it again, because the VM you are going to use is a clone from the already configured one.

ssh root@172.18.238.22 -- this is the gateway

change enp192 and emp224 to static ip's 192.168.50.2 and 172.18.238.28 and gateway 192.158.50.254 and 172.18.239.254 respectively.

ssh root@192.168.50.2

yum update 

yum goup install "development tools"

disable firewalld
disable selinux

poweroff


First ssh into the gateway
ssh root@172.18.238.22

now, from the gateway ssh into the server
ssh root@192.168.50.2

dnf install https://github.com/hpcng/warewulf/releases/download/v4.4.0/warewulf-4.4.0-1.git_afcdb21.el8.x86_64.rpm

sudo wwctl container import docker://ghcr.io/hpcng/warewulf-rockylinux:8 rocky-8


poweroff


Hung removed the gateway (172.18.238.22) at this point and was needed that for the installation for the package etc. Now the server is isolated.

ifconfig 
(will show enp192 as UP and enp224 as DOWN)

open /etc/warewulf/warewulf.conf 
change ip address to 192.168.50.2, network to 192.168.50.0 and range from 192.168.50.50 to 192.168.50.99


wwctl configure -a

systemctl enable --now warefulfd

systemctl enable --now dhcpd

wwctl container list (to verify)



sudo wwctl profile set --yes --container rocky-8 "default"


sudo wwctl profile set --yes --netdev eth0 --netmask 255.255.255.0 --gateway 192.168.50.2 "default"


sudo wwctl profile list -a (to verify)


wwctl node add node1.biohpc.swmed.edu --ipaddr 192.168.50.55 [for this ip address, choose a value in the range 50 to 99, different from 55, 60, 65- the three of us used those] --gateway 192.168.50.2 --hwaddr 00:50:56:a9:2d:43 --discoverable True


now ssh root@192.168.50.55 should be able login to client

check the hostname:
hostname
will show node1.biohpc.swmed.edu

ping from server to verify

cat /etc/fstab has nfs listed

[[/etc/warewulf/warewulf.conf has nfs, ldap info]]