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.
39 lines
1.4 KiB
Bash
Executable File
39 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# Add the IPA/SSSD client components to the node image.
|
|
# ipa-client-install is NOT run: nodes are stateless and reset on every boot.
|
|
# Configuration arrives via overlays; this only installs packages + PAM/nsswitch.
|
|
set -euo pipefail
|
|
IMG=rocky-9
|
|
|
|
echo "==> SSSD / Kerberos / NFS client packages"
|
|
wwctl image exec ${IMG} -- /bin/bash -c "
|
|
set -e
|
|
dnf install -y -q sssd sssd-ipa sssd-client sssd-tools \
|
|
krb5-workstation krb5-libs \
|
|
oddjob oddjob-mkhomedir \
|
|
authselect nfs-utils autofs \
|
|
openldap-clients ca-certificates
|
|
# point nsswitch + PAM at SSSD, create homes on first login
|
|
authselect select sssd with-mkhomedir --force
|
|
systemctl enable sssd oddjobd
|
|
# NFSv4 idmap domain
|
|
sed -i 's/^#\?Domain =.*/Domain = hpc.local/' /etc/idmapd.conf
|
|
grep -q '^Domain' /etc/idmapd.conf || echo 'Domain = hpc.local' >> /etc/idmapd.conf
|
|
dnf clean all
|
|
"
|
|
|
|
echo "==> removing local hpcuser from the image (the IPA account takes over)"
|
|
# wwctl image syncuser had copied it from the head; if it stays, nsswitch
|
|
# resolves files before sss, shadowing the IPA user with a mismatched uid.
|
|
wwctl image exec ${IMG} -- /bin/bash -c "
|
|
if id hpcuser >/dev/null 2>&1 && [ \$(id -u hpcuser) -lt 10000 ]; then
|
|
userdel hpcuser 2>/dev/null || true
|
|
fi
|
|
rm -rf /home/hpcuser
|
|
id hpcuser 2>&1 | head -1 || echo 'hpcuser is not local - correct'
|
|
"
|
|
|
|
echo "==> image build"
|
|
wwctl image build ${IMG}
|
|
echo "NODE IMAGE IPA OK"
|