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.
35 lines
1.5 KiB
Bash
Executable File
35 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Proxmox: FreeIPA + NFS home server VM (305).
|
|
# Run: ssh proxmox 'bash -s' < A00-proxmox-ipa-vm.sh
|
|
set -euo pipefail
|
|
|
|
VMID=305
|
|
STORAGE=zfspool
|
|
IMG=/var/lib/vz/template/iso/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2
|
|
PUBKEY=/root/ilker_ed25519.pub
|
|
|
|
# DUAL-HOMED:
|
|
# net0 vmbr0 10.0.0.31 -> primary identity, SSH/administration
|
|
# net1 vmbr6 10.10.10.5 -> IPA + NFS service traffic (cluster fabric)
|
|
# idm1.hpc.local resolves to 10.10.10.5 in DNS, so nodes and head01 reach the
|
|
# server directly and symmetrically. Kerberos/NFS do not work behind NAT.
|
|
if ! qm config ${VMID} >/dev/null 2>&1; then
|
|
qm create ${VMID} --name idm1 --memory 8192 --cores 4 --sockets 1 --cpu host \
|
|
--net0 virtio=BC:24:11:E0:00:31,bridge=vmbr0 \
|
|
--net1 virtio=BC:24:11:E0:0A:05,bridge=vmbr6 \
|
|
--scsihw virtio-scsi-single --ostype l26 --agent 1 --onboot 1 \
|
|
--serial0 socket --tags freeipa,identity,nfs \
|
|
--description "FreeIPA server (hpc.local) + NFS home server. net0=vmbr0 10.0.0.31 (management), net1=vmbr6 10.10.10.5 (service)."
|
|
qm importdisk ${VMID} "${IMG}" ${STORAGE}
|
|
qm set ${VMID} --scsi0 ${STORAGE}:vm-${VMID}-disk-0,discard=on,iothread=1,ssd=1
|
|
qm resize ${VMID} scsi0 100G
|
|
qm set ${VMID} --ide2 ${STORAGE}:cloudinit --boot order=scsi0
|
|
qm set ${VMID} --ciuser ilker --sshkeys ${PUBKEY} \
|
|
--ipconfig0 ip=10.0.0.31/24,gw=10.0.0.1 \
|
|
--ipconfig1 ip=10.10.10.5/24 \
|
|
--nameserver "1.1.1.1 8.8.8.8" --ciupgrade 0
|
|
fi
|
|
qm start ${VMID} 2>/dev/null || true
|
|
qm list | grep -E "idm1"
|
|
echo "IPA VM OK"
|