Closed wm2015email closed 2 years ago
From the test suite output above, munged
is failing to start. The subsequent tests fail because munged
is not running. I'd recommend running 0010-basic.t
directly to diagnose the problem:
t/0010-basic.t --root=/tmp/munge-test-$$ --verbose
Test suite tips & troubleshooting can be found here: https://github.com/dun/munge/wiki/Test-Suite
Actually, I decided not to compile it and use code below to run it instead... seems like munged needs some systemd things running that WSL doesn't start by defaul...
#=====================================================
# WSL2 SLURM Installation
#=====================================================
$ sudo apt install slurm-wlm
$ sudo apt install slurm-wlm-doc
$ cp /usr/share/doc/slurm-wlm-
doc/html/configurator.easy.h/mnt/c/Users/$(whoami)/Desktop
#Open configurator.easy.html on Desktop in Web-brower and make these changes:
# Modifications to configurator.easy.html
ControlMachine = z1
ProctrackType = proctrack/pgid
StateSaveLocation = /var/spool/slurm-llnl
SlurmctldLogFile = /var/log/slurm-llnl/Slurmctld.log
SlurmdLogFile = /var/log/slurm-llnl/Slurmd.log
NodeName=z1 CPUs=8 RealMemory=6918 Sockets=1 CoresPerSocket=4 ThreadsPerCore=2 State=UNKNOWN
PartitionName=debug Nodes=z1 Default=YES MaxTime=INFINITE State=UP
# Click Submit, and cut and paste resulting file into following vi session.
$ sudo vi /etc/slurm-llnl/slurm.conf
$ sudo mkdir -p /var/spool/slurm-llnl
$ sudo chown -R slurm:slurm /var/spool/slurm-llnl
#=====================================================
# WSL Start Servers
#=====================================================
#------------------
# Terminal 1
#------------------
# Run munge Daemon
$ sudo mkdir -p /var/run/munge # gets erased everytime you shutdown wsl?
$ sudo chown -R munge:munge /var/run/munge
$ sudo -u munge /usr/sbin/munged --syslog --force
# Sart Slurm Controller Daemon
$ sudo -u slurm slurmctld-wlm -D
#------------------
# Terminal 2
#------------------
# Start Slurm Daemon
$ sudo slurmd-wlm -D
#=====================================================
# SLURM IS READY FOR USE
#=====================================================
#------------------
# Terminal 3
#------------------
# Try a Job
Well, munged
doesn't require systemd
; that's just the common way to start services on most Linux distros these days.
It looks like you've got things working, right?
Building Munge for WSL2/Ubuntu fails...
Then from WSL, here's my Install script called install.sh:
I type:
Here's some of the build script output: