Files
pentest.intro/platforms/qemu/lab.conf
T
quoije 890dd58700 Split into qemu and proxmox platforms over a shared content tree
platforms/qemu and platforms/proxmox each have their own lab.sh and
lab.conf; content/ holds everything shared (roles, seed, site, helpers).
The dispatcher, preflight and command implementations are common and take
platform differences from the backend.

Proxmox backend: qm create with q35/SATA/e1000, ISOs and seed ISOs in an
ISO storage, provisioning over qm guest exec (no Python packages needed on
the host), template + clone for reset, and peers/ to emit WireGuard configs.
The role scripts now ride on the seed ISO, so provisioning transfers nothing.

build-bundle.sh produces a self-contained tarball per platform, for hosts
that cannot reach the git server.

Both configs are generic: no absolute path from this machine remains.
2026-10-22 19:23:16 -04:00

58 lines
2.3 KiB
Plaintext

# lab.conf — QEMU/KVM platform (generic Linux host)
# Sourced as bash by lab.sh. Keep it KEY=value, no functions.
# Override anything in lab.conf.local (gitignored) instead of editing this file.
# ---------------------------------------------------------------- identity
BACKEND="qemu"
LAB_NAME="norbourg"
DOMAIN="norbourg.lab"
NETBIOS="NORBOURG"
FLAG_PREFIX="NORBOURG"
# ---------------------------------------------------------------- network
# Lab segment. Nothing here is ever 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 the lab bridge
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"
LAB_BRIDGE="$BRIDGE"
# Interface that faces the participants. Leave empty to auto-detect the
# default-route interface at runtime.
LAN_IFACE=""
# The office network the lab must never be able to reach.
OFFICE_SUBNET="192.168.10.0/24"
# ---------------------------------------------------------------- storage
# Disks must live on a real POSIX filesystem; btrfs gets chattr +C (no CoW).
# Defaults to ~/lab-vms so a fresh clone works anywhere.
LAB_ROOT="${LAB_ROOT:-$HOME/lab-vms/pentest-lab}"
LAB_ISO_CACHE="${LAB_ISO_CACHE:-$HOME/lab-vms/iso}"
MIN_FREE_GB=20
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 (= windows/roles/<role>.ps1)
VMS=$(cat <<'EOF'
dc01 10.10.10.10 4096 36 2 dc01
fs01 10.10.10.20 4096 36 2 fs01
ws01 10.10.10.31 4096 36 2 ws01
EOF
)
# ---------------------------------------------------------------- windows
LAB_ADMIN_PASSWORD="${LAB_ADMIN_PASSWORD:-Norbourg!2026}"
LAB_SAFE_MODE_PASSWORD="${LAB_SAFE_MODE_PASSWORD:-NorbourgDsrm!2026}"
WINDOWS_IMAGE_INDEX=2 # 2 = Standard, Desktop Experience
# ---------------------------------------------------------------- tuning
DISK_FILL_RATIO=30 # percent of the nominal disk actually used (measured ~26%)
ISO_BUDGET_GB=8
BUILD_TIMEOUT=2700 # seconds to wait for unattended installs