One-Click Deployment
Set up a complete SimulationLab on any KVM-capable test server with a single command: host preparation, VM creation, configuration, and Satellite agent enrollment — without running the individual steps yourself.
:::info [Which setup should I choose?]
- One-Click (this page): a complete lab on any target in ~30–60 minutes — as a TeamCity build or via
make bootstrap TARGET=... - Manual setup (Installation): step by step (setup → apply → configure), if you want to keep full control over every step :::
Prerequisites
- Host: Ubuntu/Debian (22.04–26.04), x86_64, with hardware virtualization (KVM)
- Check:
egrep -c '(vmx|svm)' /proc/cpuinfo≥ 1 and/dev/kvmpresent - Cloud VMs: only Dedicated/Bare-Metal works — shared VMs usually have no Nested-Virt → KVM is not possible (Troubleshooting → “KVM is missing”)
- Check:
- Access to the target: SSH + sudo (password or SSH key)
- Network: the segments
10.50.0.0/24(WAN, NAT) and10.50.1.0/24(LAN, isolated) must not be in use on the target - SOCSuite (for agent enrollment): reachable via
SOC_SUITE_API_URL(defaulthttps://socsuite.dev.imvee.de)
Size profiles
| Profile | VMs | Windows | Host RAM (min) | Host disk (min) |
|---|---|---|---|---|
small | firewall, ubuntu-server, kali | none | 8 GiB | 100 GB |
medium (default) | + simlab-mgmt, win-server, win-desktop | Windows Server 2022 + Windows 11 | 20 GiB | 260 GB |
large | all 6 VMs, beefed-up specs | like medium | 36 GiB | 260 GB |
VM specs per profile (vCPU / RAM / disk): small 2 vCPU / 2 GiB / 10–30 GB · medium 2–4 vCPU / 2–4 GiB / 10–60 GB · large 4–8 vCPU / 4–8 GiB / 10–60 GB.
Option A: One-Click via TeamCity
Build 🧬 Provision: Lab (Manuell) (project SimulationLab, manual trigger — there is intentionally no VCS trigger).
| Parameter | Default | Meaning |
|---|---|---|
TARGET | — (required) | user@host on the KVM target (user with sudo) |
TARGET_PASSWORD | — | target password (set as a secret in the build form) |
TARGET_SSH_KEY | — | alternative to password: key name in the agent ~/.ssh (target needs passwordless sudo) |
LAB_SIZE | medium | small / medium / large |
SOC_SUITE_API_URL | https://socsuite.dev.imvee.de | SOCSuite for the enrollment token |
What the build does (8 steps):
- Init — parameter checks, SSH+sudo to the target
- Repo — clone/update simulationlab (main) on the target
- Preflight — KVM/RAM/disk/network on the target (size-aware, clean error messages)
- Bootstrap — host prep: libvirt, qemu, terraform, ansible, ISOs, storage, networks
- Provision — Terraform (size profile) + VM start + reachability checks
- Enrollment — enrollment token via the SOCSuite BFF
- Agents — deploy the Satellite agents (Ansible on the target)
- Health —
simlab-health.sh+ agent status via BFF → YouTrack notification
:::warn [Duration ~30–60 min] The duration depends on the size profile (Windows ISOs for medium/large) and the download speed of the target. :::
Option B: One-Click from an operator machine
The same flow without TeamCity — from any machine with git, curl, jq, ssh (+ sshpass for password auth):
git clone https://gitlab.com/imvee/simulationlab.git && cd simulationlab
make bootstrap TARGET=ubuntu@192.168.178.50 SIZE=small [TARGET_PASSWORD=...]| Parameter | Meaning |
|---|---|
TARGET | user@host (required) |
SIZE | small / medium / large (default medium, alias LAB_SIZE) |
TARGET_PASSWORD | target password (alternative to SSH-key auth) |
SOC_SUITE_API_URL | default https://socsuite.dev.imvee.de |
The secrets (GitLab token, lab passwords) are loaded automatically from Infisical when /run/infisical-agent credentials are present on the operator machine — otherwise via env vars (GITLAB_TOKEN, ANSIBLE_SSH_PASS, SIMLAB_WIN_PASS).
Preflight without side effects
make preflight LAB_SIZE=small # KVM, RAM, disk, network — read-only, no changesOperations after the one-click
| Task | Command (on the target) |
|---|---|
| Quick health (virsh state + ping + auth port per VM) | make health |
| Full health check | make health-check |
| Ordered VM boot (firewall → win-server → rest) | make boot |
| Install auto-start after a host reboot | make boot-install (systemd unit) |
| Delete all VMs | make destroy (Terraform destroy, full cleanup) |
One-click destroy via TeamCity: build 🗑️ Manual: Destroy Infrastructure — set DESTROY_CONFIRM=yes (destructive, no trigger).
Changing the size
There is no in-place resize — a size change is done via re-provisioning:
make destroy # on the target (or the TC destroy build)
make bootstrap TARGET=user@host SIZE=large # with the new profileTerraform can also reconcile an existing state to a different profile (create new VMs, remove dropped ones, update changed specs) — the clean, tested path is re-provisioning.
Troubleshooting (quick overview)
| Problem | Docs |
|---|---|
| KVM missing / cloud VM without Nested-Virt | Troubleshooting → “KVM is missing / cloud VM without Nested-Virt” |
| Network conflict (10.50.x.x in use) | Troubleshooting → “Network conflict” |
| Windows VM does not boot | Troubleshooting → “Windows VM does not boot” |
Next steps
- Installation — manual setup, step by step
- Operations — daily commands, VM management, scenario orchestrator
- Test scenarios — agent tests and attack scenarios
- Troubleshooting — common problems and fixes