SimulationLab Infrastructure
Network topology, VM configuration and firewall setup of the SimulationLab. This page explains how the isolated lab environment is structured and why certain architectural decisions were made.
:::info [Network isolation]
All VMs run in a NAT network (10.50.0.0/24) that is isolated from the host network, K8s and Docker.
:::
Network Topology
graph LR
subgraph Host["IMVEE Dev Server"]
subgraph WAN["virbr-wan · 10.50.0.0/24 · NAT"]
FW_WAN["Firewall<br/>10.50.0.10"]
end
subgraph LAN["virbr-lan · 10.50.1.0/24 · Isolated"]
FW_LAN["Firewall<br/>10.50.1.1"]
WS["win-server<br/>10.50.1.10<br/>AD DC + DNS"]
WD["win-desktop<br/>10.50.1.20"]
UB["ubuntu-server<br/>10.50.1.30"]
end
end
SOC["SOCSuite<br/>socsuite.dev.imvee.de"]
FW_WAN --- FW_LAN
FW_LAN --- WS
FW_LAN --- WD
FW_LAN --- UB
FW_WAN -. "NAT" .-> SOC
UB -. "Events + Heartbeat" .-> SOCNetwork Segments
| Segment | CIDR | Purpose |
|---|---|---|
| SimulationLab | 10.50.0.0/24 | VMs (NAT via virbr1) |
| Kubernetes | 10.42.0.0/16 | K8s pods (no conflict) |
| Docker | 172.17.0.0/16 | Docker (no conflict) |
| Host LAN | 192.168.178.x | Physical network |
DHCP range: 10.50.0.10 – 10.50.0.254 (dnsmasq via libvirt)
Storage
/mnt/data/simulationlab/ ← separate volume, NOT the root disk
├── pools/ ← libvirt storage pool
│ ├── ubuntu-server.qcow2 ← Ubuntu VM disk (20 GB)
│ ├── ubuntu-server-cloudinit.iso ← Cloud-Init ISO
│ ├── win-server.qcow2 ← Windows Server disk (60 GB)
│ └── win-desktop.qcow2 ← Windows 11 disk (60 GB)
└── images/ ← Base images (read-only)
└── ubuntu-24.04-cloudimg-amd64.imgIaC Layers
Terraform (libvirt provider)
→ What exists: VMs, network, storage pool, Cloud-Init disk
Ansible
→ How it looks: OS config, packages, SSH, SOCSuite agentTerraform Resources
| Resource | Type | Description |
|---|---|---|
libvirt_pool.simulationlab | Storage Pool | /mnt/data/simulationlab/pools |
libvirt_network.simulationlab | NAT network | 10.50.0.0/24 |
libvirt_volume.ubuntu_disk | qcow2 volume | Ubuntu system disk |
libvirt_cloudinit_disk | Cloud-Init ISO | First boot: user, key, packages |
libvirt_domain.ubuntu | KVM VM | ubuntu-server (Ubuntu 24.04) |
Ansible Roles
| Role | Purpose |
|---|---|
baseline-linux | OS base config, packages, SSH |
baseline-windows | Windows base config |
satellite-linux | Install SOCSuite agent (Linux) |
satellite-windows | Install SOCSuite agent (Windows) |
scenario-vulnerable | Vulnerable services for testing |
Directory Structure
simulationlab/
├── .yamllint.yml YAML lint config (max 160 chars)
├── terraform/
│ ├── main.tf Provider, storage pool, network
│ ├── ubuntu.tf Ubuntu 24.04 VM
│ ├── windows-server.tf Windows Server 2022 VM
│ ├── windows-desktop.tf Windows 11 VM
│ ├── variables.tf Variable definitions
│ ├── terraform.tfvars Concrete values
│ ├── outputs.tf Outputs (IPs, status)
│ └── cloud-init/
│ ├── ubuntu-userdata.yaml
│ └── ubuntu-network.yaml
├── ansible/
│ ├── site.yml Master playbook
│ ├── inventory.ini VM inventory with IPs
│ ├── ansible.cfg Ansible configuration
│ ├── group_vars/
│ │ ├── all/
│ │ │ └── main.yml Global variables (URLs, versions)
│ │ ├── linux.yml Linux-specific variables
│ │ └── windows.yml Windows-specific variables
│ └── roles/
└── scripts/
└── setup-host.sh Host setup (one-time)Further Reading
- Installation — Set up the SimulationLab
- Operations — VM management and Make targets
- Test Scenarios — Agent tests and scenarios
- Satellite Agent — Agent overview and architecture