Phase 3: unattended install, seed ISOs and VM lifecycle

autounattend template (q35/AHCI/e1000, no virtio injection), per-VM seed
ISOs with a bootstrap that configures the static IP, enables WinRM/RDP and
chains into the role script. build --dry-run, up/down/status/vnc verbs.

Static addressing happens in PowerShell rather than in the unattend file:
Microsoft-Windows-TCPIP matches adapters by connection name and fails
silently when the name differs.
This commit is contained in:
2026-10-21 18:46:31 -04:00
parent 5a8f988f30
commit c66b5641b6
11 changed files with 719 additions and 24 deletions
+9
View File
@@ -34,6 +34,10 @@ LAB_ROOT="/home/quoije/lab-vms/pentest-lab"
LAB_ISO_CACHE="/media/amy/pentest-lab-iso"
MIN_FREE_GB=20
# Resolved by `lab.sh isos`.
WINDOWS_ISO="$LAB_ISO_CACHE/SERVER_EVAL_x64FRE_en-us.iso"
VIRTIO_ISO="$LAB_ISO_CACHE/virtio-win.iso"
# ---------------------------------------------------------------- vms
# name ip ram_mb disk_gb vcpu role
VMS=$(cat <<'EOF'
@@ -44,6 +48,11 @@ EOF
)
# ---------------------------------------------------------------- windows
# Local administrator password used by the unattend file. Override it in
# lab.conf.local for anything that is not a throwaway lab.
LAB_ADMIN_PASSWORD="${LAB_ADMIN_PASSWORD:-Norbourg!2026}"
# Index of the image inside the eval ISO (2 = Standard, Desktop Experience).
WINDOWS_IMAGE_INDEX=2
# Local milestone uses Server 2022 for every role (no TPM/Secure Boot friction).
# Proxmox enables Windows 11 workstations and the WS02 decoy.
WORKSTATION_OS="srv2022" # srv2022 | win11