IMVEEDev Portal

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/kvm present
    • Cloud VMs: only Dedicated/Bare-Metal works — shared VMs usually have no Nested-Virt → KVM is not possible (Troubleshooting → “KVM is missing”)
  • Access to the target: SSH + sudo (password or SSH key)
  • Network: the segments 10.50.0.0/24 (WAN, NAT) and 10.50.1.0/24 (LAN, isolated) must not be in use on the target
  • SOCSuite (for agent enrollment): reachable via SOC_SUITE_API_URL (default https://socsuite.dev.imvee.de)

Size profiles

ProfileVMsWindowsHost RAM (min)Host disk (min)
smallfirewall, ubuntu-server, kalinone8 GiB100 GB
medium (default)+ simlab-mgmt, win-server, win-desktopWindows Server 2022 + Windows 1120 GiB260 GB
largeall 6 VMs, beefed-up specslike medium36 GiB260 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).

ParameterDefaultMeaning
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_SIZEmediumsmall / medium / large
SOC_SUITE_API_URLhttps://socsuite.dev.imvee.deSOCSuite for the enrollment token

What the build does (8 steps):

  1. Init — parameter checks, SSH+sudo to the target
  2. Repo — clone/update simulationlab (main) on the target
  3. Preflight — KVM/RAM/disk/network on the target (size-aware, clean error messages)
  4. Bootstrap — host prep: libvirt, qemu, terraform, ansible, ISOs, storage, networks
  5. Provision — Terraform (size profile) + VM start + reachability checks
  6. Enrollment — enrollment token via the SOCSuite BFF
  7. Agents — deploy the Satellite agents (Ansible on the target)
  8. 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=...]
ParameterMeaning
TARGETuser@host (required)
SIZEsmall / medium / large (default medium, alias LAB_SIZE)
TARGET_PASSWORDtarget password (alternative to SSH-key auth)
SOC_SUITE_API_URLdefault 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 changes

Operations after the one-click

TaskCommand (on the target)
Quick health (virsh state + ping + auth port per VM)make health
Full health checkmake health-check
Ordered VM boot (firewall → win-server → rest)make boot
Install auto-start after a host rebootmake boot-install (systemd unit)
Delete all VMsmake 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 profile

Terraform 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)

ProblemDocs
KVM missing / cloud VM without Nested-VirtTroubleshooting → “KVM is missing / cloud VM without Nested-Virt”
Network conflict (10.50.x.x in use)Troubleshooting → “Network conflict”
Windows VM does not bootTroubleshooting → “Windows VM does not boot”

Next steps

On this page