Proxmox hardening from a dry run and stub tests

- PVE has no win2k22 ostype; Server 2022 maps to win11
- drop --startup 0, which is not a valid order value
- after install, repoint the boot order at sata0 and detach the installer
  ISO, so a stray keypress cannot re-enter Setup
- ISO storage detection falls back to storage.cfg when pvesm has no
  --content flag
- router wg0 is now 10.10.10.250/32 with the lab NIC at .251/24: two /24s on
  one host made routing ambiguous
- nft rules use the router's own interface name (WG_LAB_IFACE), not vmbr10
This commit is contained in:
2026-10-22 21:26:37 -04:00
parent 77d123a9cf
commit 608b559e51
5 changed files with 78 additions and 15 deletions
+2 -1
View File
@@ -37,7 +37,7 @@ PVE_BRIDGE="vmbr10"
# VM ids. dc01=base+0, fs01=base+1, ws01=base+2; templates use base+100.
PVE_VMID_BASE=1100
PVE_OSTYPE="win2k22"
PVE_OSTYPE="win11" # PVE has no win2k22; win11 covers Server 2022
PVE_BIOS="seabios" # Windows 11 would need ovmf + efidisk0 + tpmstate0
PVE_MACHINE="q35"
PVE_CPU="host"
@@ -77,3 +77,4 @@ BUILD_TIMEOUT=2700
WG_PORT=51820
WG_ENDPOINT="" # leave empty to print the LAN address instead
WG_DIR="${WG_DIR:-$HOME/norbourg-peers}"
WG_LAB_IFACE="eth1" # interface name inside the router VM