From 1f2178e99a20db97df453c691a9d60b12ef118f5 Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Tue, 27 Oct 2026 10:31:52 +0100 Subject: [PATCH] lab: noautologin on the commissioning cmdline; note on persisting BMC addresses in netplan Co-Authored-By: Claude Fable 5.1 --- deploy/config.example.json | 2 +- deploy/pxelinux-default | 4 ++-- lab/pve-vbmc/install.sh | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deploy/config.example.json b/deploy/config.example.json index 6a61119..e250f8a 100644 --- a/deploy/config.example.json +++ b/deploy/config.example.json @@ -6,7 +6,7 @@ "master_key_file": "/etc/rollcall/master.key", "admin_token": "", "agent_token": "", - "commission_append": "boot=live components fetch=http://10.213.77.1/rollcall/filesystem.squashfs rollcall.server=http://10.213.77.1 rollcall.token= console=tty0 console=ttyS0,115200n8", + "commission_append": "boot=live components fetch=http://10.213.77.1/rollcall/filesystem.squashfs rollcall.server=http://10.213.77.1 noautologin rollcall.token= console=tty0 console=ttyS0,115200n8", "ipmitool": "ipmitool", "server_url": "http://10.213.77.1", "images_dir": "/srv/rollcall/images", diff --git a/deploy/pxelinux-default b/deploy/pxelinux-default index 1983d63..e82d935 100644 --- a/deploy/pxelinux-default +++ b/deploy/pxelinux-default @@ -10,13 +10,13 @@ LABEL commission MENU DEFAULT KERNEL rollcall/vmlinuz INITRD rollcall/initrd.img - APPEND boot=live components fetch=http://10.213.77.1/rollcall/filesystem.squashfs rollcall.server=http://10.213.77.1 rollcall.token=@AGENT_TOKEN@ console=tty0 console=ttyS0,115200n8 + APPEND boot=live components fetch=http://10.213.77.1/rollcall/filesystem.squashfs rollcall.server=http://10.213.77.1 noautologin rollcall.token=@AGENT_TOKEN@ console=tty0 console=ttyS0,115200n8 LABEL commission-debug MENU LABEL Commission, but stay up afterwards (ssh root@) KERNEL rollcall/vmlinuz INITRD rollcall/initrd.img - APPEND boot=live components fetch=http://10.213.77.1/rollcall/filesystem.squashfs rollcall.server=http://10.213.77.1 rollcall.token=@AGENT_TOKEN@ rollcall.nopoweroff console=tty0 console=ttyS0,115200n8 + APPEND boot=live components fetch=http://10.213.77.1/rollcall/filesystem.squashfs rollcall.server=http://10.213.77.1 noautologin rollcall.token=@AGENT_TOKEN@ rollcall.nopoweroff console=tty0 console=ttyS0,115200n8 LABEL netbootxyz MENU LABEL netboot.xyz (needs internet via NAT) diff --git a/lab/pve-vbmc/install.sh b/lab/pve-vbmc/install.sh index ac632b2..54ce620 100644 --- a/lab/pve-vbmc/install.sh +++ b/lab/pve-vbmc/install.sh @@ -10,6 +10,9 @@ install -m 0644 pve-vbmc@.service pve-vbmc-addrs.service /etc/systemd/system/ chgrp pve-vbmc /etc/pve-vbmc/config.json && chmod 0640 /etc/pve-vbmc/config.json systemctl daemon-reload systemctl enable --now pve-vbmc-addrs.service +# NOTE: on netplan/systemd-networkd hosts a later reconfigure flushes addresses added by the +# service (seen in the lab: the BMCs stopped answering). Also list the BMC addresses under the +# pxenet interface in /etc/netplan/*.yaml so they survive. for v in $(python3 -c 'import json;print(" ".join(str(b["vmid"]) for b in json.load(open("/etc/pve-vbmc/config.json"))["bmcs"]))'); do systemctl enable --now "pve-vbmc@$v.service" done