Phase 1: scaffold lab.sh, config and preflight checks
Move the archived 2002 site into site-src/ so the lab README can take the repo root. Add lab.conf, the lab.sh dispatcher, a qemu backend and the check/init verbs. No VM is created yet.
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
# 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
|
||||
|
||||
# ---------------------------------------------------------------- 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 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
|
||||
Reference in New Issue
Block a user