A complete, verified HPC lab on Proxmox (hv01) with its own isolated subnet,
central identity and a web console for overlay management.
Infrastructure
- vmbr6: L2-only cluster fabric, deliberately without an address on the
hypervisor so Warewulf owns DHCP/TFTP/PXE for the whole subnet.
- head01 (VM 300): Warewulf 4.7.0, dnsmasq-free DHCP/TFTP/iPXE chain,
Slurm controller, MUNGE, NAT gateway, /opt exported read-only.
- wwnode1-4 (VM 301-304): diskless, PXE-booted, rootfs unpacked into RAM.
- idm1 (VM 305): FreeIPA (LDAP/Kerberos/Dogtag CA/DNS) plus the NFS home
server. Dual-homed on purpose: idm1.hpc.local resolves to the cluster
fabric so Kerberos and NFS never traverse head01's masquerade.
Stack
Rocky Linux 9.8, OpenHPC 3, Slurm 25.11.4, OpenMPI 5.0.7, FreeIPA 4.13.1.
Stateless domain join
Nodes are rebuilt in RAM every boot, so ipa-client-install cannot be used.
Enrolment happens once and is distributed through Warewulf overlays: shared
config as templates rendered per node via {{.Id}}, and a separate keytab per
node so wwnode1 cannot impersonate wwnode2.
Overlay web UI (webui/)
A Go service on the head node serving a browser interface over the Warewulf
REST API. It exists as a server rather than a static page because the API is
root-equivalent and bound to loopback; the service holds the credentials and
proxies same-origin, so the browser never sees one. Published behind Caddy
with bcrypt logins, server-side sessions and per-user/per-IP lockout.
Documentation
README plus docs/01-10 covering architecture, installation, Warewulf,
identity, storage, Slurm/MPI, operations, troubleshooting and reference,
with a 22-page PDF edition. Section 08 records twelve concrete failures hit
during the build, including a wwctl flag that fails silently.
No credentials are stored here. Every secret lives on the servers; the
documentation refers only to its path.
38 lines
1.3 KiB
Bash
Executable File
38 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Configure Warewulf for the 10.10.10.0/24 cluster subnet
|
|
set -euo pipefail
|
|
|
|
CONF=/etc/warewulf/warewulf.conf
|
|
cp -n ${CONF} ${CONF}.orig 2>/dev/null || true
|
|
|
|
echo "==> warewulf.conf: cluster subnet = 10.10.10.0/24, head = 10.10.10.1"
|
|
python3 - "$CONF" <<'PY'
|
|
import sys, re
|
|
p = sys.argv[1]
|
|
s = open(p).read()
|
|
s = re.sub(r'^ipaddr:.*$', 'ipaddr: 10.10.10.1', s, count=1, flags=re.M)
|
|
s = re.sub(r'^netmask:.*$', 'netmask: 255.255.255.0', s, count=1, flags=re.M)
|
|
s = re.sub(r'^network:.*$', 'network: 10.10.10.0', s, count=1, flags=re.M)
|
|
# DHCP pool: transient PXE leases only. Registered nodes get static 10.10.10.11-14.
|
|
s = re.sub(r'^(\s*)range start:.*$', r'\1range start: 10.10.10.100', s, count=1, flags=re.M)
|
|
s = re.sub(r'^(\s*)range end:.*$', r'\1range end: 10.10.10.199', s, count=1, flags=re.M)
|
|
open(p,'w').write(s)
|
|
PY
|
|
head -3 ${CONF}
|
|
grep -A4 '^dhcp:' ${CONF}
|
|
|
|
echo "==> wwctl configure --all (dhcpd, tftp, nfs, ssh keys, hostfile)"
|
|
wwctl configure --all
|
|
|
|
echo "==> enabling services"
|
|
systemctl enable --now warewulfd
|
|
systemctl enable --now dhcpd
|
|
systemctl enable --now tftp.socket
|
|
systemctl enable --now nfs-server
|
|
|
|
echo "==> status"
|
|
for s in warewulfd dhcpd tftp.socket nfs-server; do
|
|
printf '%-16s %s\n' "$s" "$(systemctl is-active $s)"
|
|
done
|
|
echo "CONFIGURE OK"
|