SLURM on WSL

SLURM installation on WSL

Installing Munge

sudo apt install libgcrypt20-dev
tar -xf munge-0.5.16.tar.xz
cd munge-0.5.16/
./configure \
     --prefix=/usr \
     --sysconfdir=/etc \
     --localstatedir=/var \
     --runstatedir=/run
make
make check
sudo make install
which munge

Installing MySQL

sudo apt-get install mysql-server
sudo apt-get install build-essential fakeroot devscripts
sudo apt-get install equivs
wget https://download.schedmd.com/slurm/slurm-24.05.0-0rc1.tar.bz2
tar -xf slurm-24.05.0-0rc1.tar.bz2
cd slurm-24.05.0-0rc1/
sudo mk-build-deps -i debian/control
./configure
sudo make install
ls /usr/local/lib/libslurm.so
ldconfig -n /usr/local/lib
sudo apt install munge slurm-wlm net-tools slurm-wlm-doc
hostname
slurmd -C
ifconfig  # Find eth0 IP address
sudo mkdir /etc/slurm-llnl
sudo vi /etc/slurm-llnl/slurm.conf
sudo systemctl enable slurmctld
sudo service slurmctld start
sudo systemctl enable slurmd
sudo service slurmd start
$  sudo /etc/init.d/munge start
Starting munge (via systemctl): munge.service.
$  sudo /etc/init.d/munge status
● munge.service - MUNGE authentication service
     Loaded: loaded (/lib/systemd/system/munge.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2024-05-20 18:00:25 PDT; 19min ago
       Docs: man:munged(8)
   Main PID: 5825 (munged)
      Tasks: 4 (limit: 38448)
     Memory: 624.0K
     CGroup: /system.slice/munge.service
             └─5825 /usr/sbin/munged

May 20 18:00:25 skynetPC systemd[1]: Starting MUNGE authentication service...
May 20 18:00:25 skynetPC systemd[1]: Started MUNGE authentication service.

Latest Blogposts

SLURM Demo on AWS Ubuntu EC2 instance

Demo of slurm usage on a single instance of Ubuntu 24.04 EC2 instances on AWS

29 May 2024

Introduction to SLURM

Simple Linux Utility for Resource Management (SLURM)

26 May 2024

How to find a linux machine is a VM (Virtual Machine) or a Bare Metal

If you can SSH into a linux machine and want to find out if its baremetal or Virtual Machine

7 November 2023

Storing Github access token in git credential store

Using git credentials store the github access token to avoid the re-prompting of username and pwd

4 April 2023

Token generation for Registering Self Hosted Github Runner via REST API

Explains how to generate a token using github API to be used in turn with Github self hosted runner registration

21 March 2023