Files
pentest.intro/lab.conf
T
quoije c66b5641b6 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.
2026-10-21 18:46:31 -04:00

65 lines
2.7 KiB
Plaintext

# lab.conf — Norbourg lab configuration
# Sourced as bash by lab.sh. Keep it simple: KEY=value, no functions.
# Overrides: copy to lab.conf.local (gitignored) or set LAB_CONF=/path/to/file.
# ---------------------------------------------------------------- identity
LAB_NAME="norbourg"
DOMAIN="norbourg.lab"
NETBIOS="NORBOURG"
FLAG_PREFIX="NORBOURG"
# ---------------------------------------------------------------- backend
# qemu = local QEMU/KVM on the dev workstation (phase 1+)
# proxmox = qm on the Proxmox VE host (phase 11)
BACKEND="${BACKEND:-qemu}"
# ---------------------------------------------------------------- network
# Lab segment. Nothing in here must ever be bridged to the office LAN.
LAB_SUBNET="10.10.10.0/24"
LAB_NETMASK="24"
LAB_PREFIX="10.10.10"
LAB_HOST_IP="10.10.10.230" # this host, on br-lab (qemu backend)
LAB_DC_IP="10.10.10.10" # DC01, also the lab DNS server
LAB_GATEWAY="10.10.10.230" # default gateway handed to the VMs
BRIDGE="br-lab" # qemu backend
PROXMOX_BRIDGE="vmbr10" # proxmox backend
# Upper bound of the office network the lab must never reach.
OFFICE_SUBNET="192.168.10.0/24"
# ---------------------------------------------------------------- storage
# qcow2 lives on a real POSIX filesystem; btrfs gets chattr +C (no CoW).
LAB_ROOT="/home/quoije/lab-vms/pentest-lab"
# ISOs are large read-only blobs: NTFS/FUSE is acceptable there, nowhere else.
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'
dc01 10.10.10.10 4096 36 2 dc
fs01 10.10.10.20 4096 36 2 fs
ws01 10.10.10.31 4096 36 2 ws
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
ENABLE_DECOYS="0" # 1 = add ws02 on proxmox
# ---------------------------------------------------------------- tuning
# Rough share of the nominal disk a fresh Windows install actually consumes.
DISK_FILL_RATIO=60 # percent
ISO_BUDGET_GB=8 # Server 2022 + virtio-win, rounded up