Build cluster openhpc warewulf slurm - lrahmani/openhpc-on-virtualbox GitHub Wiki
- Create the
adminNodeOHPC
VM and install CentOS7 minimal as base os
- Install OpenHPC configuration package (it will add openHPC repository, and needed GPG keys)
- Install OpenHPC base packages
yum -y install ohpc-base
- Prepare cluster configuration
> cat cluster_config.sh
# HOSTNAMES
export sms_name=frontend
export c_name[0]=compute1
export c_name[1]=compute2
# IP ADDRESSES
export sms_ip=192.168.50.1
export c_ip[0]=192.168.50.20
export c_ip[1]=192.168.50.21
export internal_netmask=255.255.255.0
export sms_eth_internal=enp0s3
# MAC ADDRESSES
export sms_mac=080027C6E865
export c_mac[0]=080027D1906C
export c_mac[1]=0800278A113D
> source cluster_config.sh
echo ${sms_ip} ${sms_name} >> /etc/hosts
- Configure time server
# configure time server
systemctl enable ntpd
systemctl start ntpd
- Add
warewulf
for provisioning
yum -y install ohpc-warewulf
# Basic warewulf configuration
# set provisioning interface
sed -i "/device = eth1/c\device = ${sms_eth_internal}" /etc/warewulf/provision.conf
# enable tftp
/etc/xinetd.d/tftp
# configure provisioning interface
ifconfig ${sms_eth_internal} ${sms_ip} netmask ${internal_netmask} up
# enable relevant services
systemctl restart xinetd
systemctl enable mariadb.service
systemctl restart mariadb
systemctl enable httpd.service
systemctl restart httpd
systemctl enable dhcpd.service
- Add
slurm
resources manager
yum -m install ohpc-slurm-server
# slurm basic configuration
sed -i "/^ControlMachine=/c\ControlMachine=${sms_name}" /etc/slurm/slurm.conf
# configure physical hardware characteristics for virtualbox