Installation
Schritt-für-Schritt-Anleitung zum Aufsetzen des SimulationLab auf einem KVM-fähigen Host. Am Ende hast du eine isolierte Laborumgebung mit Firewall, Active Directory und Linux-Clients.
:::info [Empfohlen: One-Click Deployment]
Für das Aufsetzen auf einem beliebigen Test-Server gibt es den One-Click-Flow (1 Befehl: Host-Prep + VMs + Konfiguration + Agent-Enrollment) — TeamCity-Build oder make bootstrap TARGET=... SIZE=...: One-Click Deployment. Diese Seite beschreibt den manuellen Aufbau (Schritt für Schritt).
:::
Voraussetzungen
- Debian/Ubuntu-Host mit KVM-Support (
kvm-ok) make,terraform,ansibleinstalliert- Zugriff auf
/mnt/data/simulationlab/(separates Volume, mind. 200 GB) - Zugriff auf k8s-Cluster (
kubectlkonfiguriert, Secretagent-tokensin Namespaceimvee-devvorhanden)
Erstinstallation
1. Repo klonen
git clone https://gitlab.com/imvee/simulationlab.git
cd simulationlab2. Host vorbereiten
Einmalig — installiert Abhängigkeiten und lädt Cloud-Images herunter:
make setup # braucht sudoDieser Schritt:
- Installiert
libvirt,qemu-kvm,terraform,ansible - Erstellt Storage-Verzeichnisse unter
/mnt/data/simulationlab/ - Lädt Ubuntu 24.04 Cloud-Image herunter
3. SSH-Key generieren (optional)
ssh-keygen -t ed25519 -f ~/.ssh/simulationlab -N "" -C "simulationlab@$(hostname)"Den Public Key in terraform/terraform.tfvars eintragen:
ssh_public_key = "ssh-ed25519 AAAA... simulationlab@host":::info [Passwort-Auth ist der Standard]
Alle Linux-VMs nutzen Passwort-basierte SSH-Authentifizierung (User ubuntu,
auf Kali kali). Das Passwort für alle Linux-VMs liegt in Infisical
(simlab-linux-password) und wird von Terraform/Ansible automatisch aus der lokalen
Kopie .secrets/linux_password (gitignored) geladen.
SSH-Keys sind optional (Terraform-Variable ssh_public_key) und nicht erforderlich.
:::
4. Terraform initialisieren
make init
make plan # Vorschau prüfen
make apply # VMs erstellen5. Secrets und Enrollment-Token
Alle Lab-Secrets liegen in Infisical (env dev) — Source of Truth. Keine
Passwörter in Git:
| Infisical-Secret | Verwendung | Lokale Kopie (gitignored) |
|---|---|---|
simlab-linux-password | SSH-Passwort aller Linux-VMs | .secrets/linux_password |
simlab-windows-password | Windows-Admin-Passwort | .secrets/windows_admin_password |
# Lokale Kopien aus Infisical anlegen (einmalig bzw. nach Passwort-Rotation)
mkdir -p .secrets
# Werte aus Infisical eintragen (nicht in Git committen!)
echo "<simlab-linux-password>" > .secrets/linux_password
echo "<simlab-windows-password>" > .secrets/windows_admin_password
chmod 600 .secrets/linux_password .secrets/windows_admin_passwordDer Enrollment-Token (kurzlebig) wird bei make configure-linux als Extra-Var
satellite_enrollment_token übergeben. Token-Quellen:
SOCSuite UI (Settings → Agents → Tokens) oder scripts/gen-enrollment-token.sh.
# Token via Script erzeugen (SOCSuite-API, schreibt enroll.env)
ENV_NAME=dev bash scripts/gen-enrollment-token.sh
# Manuell deployen mit Token
ENROLLMENT_TOKEN=<TOKEN> bash scripts/deploy-agents.sh6. Inventory prüfen
Alle VMs haben statische IPs im LAN-Segment (10.50.1.0/24):
| VM | IP |
|---|---|
| firewall | 10.50.1.1 |
| simlab-mgmt | 10.50.1.5 |
| win-server | 10.50.1.10 |
| win-desktop | 10.50.1.20 |
| ubuntu-server | 10.50.1.30 |
| kali | 10.50.1.40 |
Das Ansible-Inventory (ansible/inventory.ini) wird von make apply automatisch
via scripts/generate-inventory.sh aus den Terraform-Outputs generiert (gitignored)
und muss normalerweise nicht angepasst werden.
7. Ansible ausführen
# Korrekte Reihenfolge einhalten!
make configure-firewall # 1. Gateway muss zuerst stehen
make configure-ad # 2. AD Domain Controller
make configure-windows # 3. Domain-Join + Baseline
make configure-linux # 4. Linux-VMs + Satellite Agent
# ODER: alles auf einmal
make configureWichtige Hinweise
:::warn [libvirt memory-Einheit]
Der memory-Parameter in libvirt_domain wird in KiB übergeben, nicht MiB.
2 GiB = 2097152, 4 GiB = 4194304.
:::
:::warn [Cloud-Init]
Cloud-Init läuft nur beim ersten Boot der VM. Bei Key-Änderungen muss die VM
neu erstellt werden (terraform apply -replace=libvirt_volume.ubuntu_disk ...).
:::
Portable Deployment Guide
Deploy the complete SimulationLab Enterprise environment on any Linux host with KVM support.
🎯 One-Command Deployment
# Clone the repository
git clone <repository-url> simulationlab
cd simulationlab
# Automated setup with prerequisite checking
scripts/setup-host-portable.sh
# Check prerequisites before deployment
make check-prerequisites
# Deploy infrastructure (includes ISO and configuration checks)
make apply
# Configure all services
make configureResult: Complete Enterprise lab with AD, firewall, VMs, and SOCSuite integration.
📋 Prerequisites
Hardware Requirements
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 8 cores | 16+ cores |
| RAM | 12 GB | 24+ GB |
| Disk | 200 GB free | 500+ GB |
| Network | Single NIC | Dedicated lab network |
Software Requirements
- Linux Distribution: Ubuntu 20.04+, Debian 11+, RHEL 8+, CentOS 8+
- Virtualization: KVM support (check:
kvm-ok) - User Privileges: sudo access (not root user)
- Network: Internet access for downloads
🚀 Deployment Steps
Step 1: Host Preparation
# Auto-detect and install everything
./scripts/setup-host-portable.sh
# Or manual with custom storage
./scripts/setup-host-portable.sh install /opt/simulationlabWhat it does:
- Installs KVM, libvirt, Terraform, Ansible
- Configures virtualization
- Downloads Ubuntu cloud image
- Auto-detects host IP and network interface
- Generates terraform.tfvars
Step 2: Site Configuration
# Review auto-generated configuration
cat terraform/terraform.tfvars
# Customize if needed
cp terraform.tfvars.template terraform/terraform.tfvars
# Edit deployment_site, host_ip, resource allocation, etc.Step 3: Download Windows ISOs
# See generated guide
cat images/README.md
# Download to images/ directory:
# - windows-server-2022.iso
# - windows-11.isoStep 4: Infrastructure Deployment
# Initialize Terraform
make init
# Review deployment plan
make plan
# Deploy VMs
make apply
# Fix Windows boot order
make fix-bootStep 5: Service Configuration
# Complete configuration pipeline
make configure
# Or step-by-step:
make configure-bridge # SOCSuite connectivity
make configure-firewall # Gateway + IDS
make configure-ad # Domain Controller
make configure-windows # Domain join + agents
make configure-linux # Linux agents🌍 Site Customization
Different Host Networks
# terraform.tfvars
host_ip = "10.0.1.100" # Your host IP
wan_cidr = "10.70.0.0/24" # Netzwerk-Range anpassen um Konflikte zu vermeiden
lan_cidr = "10.70.1.0/24"Resource Scaling
# terraform.tfvars — Sizing-Profil wählt VM-Auswahl + Specs (Refs #14)
lab_size = "small" # nur firewall + ubuntu-server + kali (~6 GiB VM-RAM)
lab_size = "medium" # Status quo: 6 VMs
lab_size = "large" # 6 VMs mit erweiterten SpecsKonkrete Profil-Werte: terraform/locals.tf (size_profiles).
Multiple Deployments
# Site A
deployment_site = "lab-office-a"
host_ip = "192.168.1.100"
ad_domain_name = "laba.dev.imvee.de"
# Site B
deployment_site = "lab-office-b"
host_ip = "10.0.0.50"
ad_domain_name = "labb.dev.imvee.de"🔧 Maintenance Commands
VM Management
# Check status
make status
virsh list --all
# Stop/start VMs
virsh shutdown win-server
virsh start win-server
# Connect to VMs
make ssh-ubuntu
ssh -i ~/.ssh/simulationlab lab@10.50.1.30Service Management
# SOCSuite bridge status
systemctl status kubectl-pf-backend
systemctl status nginx
# Agent status
ansible all -m ping
ansible windows -m win_ping🖥️ Management VM (simlab-mgmt)
Die simlab-mgmt VM (10.50.1.5) ist der dedizierte Administrations-Knoten für das SimulationLab.
Sie hostet den Ansible-Runner API (FastAPI auf Port 8085), über den SOCSuite Angriffsszenarien auslöst.
Deployment
# simlab-mgmt VM per Terraform anlegen
make apply # schließt mgmt.tf ein
# Ansible-Runner konfigurieren
ansible-playbook ansible/site.yml --limit simlab-mgmt
# Oder nur den mgmt-node einrichten
ansible-playbook ansible/site.yml --limit mgmt_nodeRunner-Token setzen
# Token auf der VM setzen (erster Start)
ssh -i ~/.ssh/simulationlab simlab@10.50.1.5 \
"sudo sed -i 's/changeme/<dein-token>/' /etc/simlab-runner.env && sudo systemctl restart simlab-runner"
# Token in SOCSuite k8s Secret hinterlegen
kubectl create secret generic simlab-runner-secret \
--from-literal=SIMLAB_RUNNER_TOKEN=<dein-token> \
-n imvee-devRunner-Status prüfen
# Health Check
curl http://10.50.1.5:8085/health
# Szenarien auflisten (Token erforderlich)
TOKEN=<dein-token>
curl -H "Authorization: Bearer $TOKEN" http://10.50.1.5:8085/scenarios
# Service-Status auf der VM
ssh -i ~/.ssh/simulationlab simlab@10.50.1.5 "systemctl status simlab-runner"Architektur
SOCSuite (k8s) → SIMLAB_RUNNER_URL=http://192.168.178.99:8085
│
KVM Host (192.168.178.99)
│ port-forward oder Bridge
simlab-mgmt (10.50.1.5)
└─ simlab-runner.service
└─ ansible-playbook ...
└─ ubuntu-server, win-server, ...Hinweis: Solange kein Port-Forward vom KVM-Host (192.168.178.99) zur simlab-mgmt VM (10.50.1.5:8085) besteht,
zeigt SIMLAB_RUNNER_URL auf den KVM-Host direkt. Port-Forward einrichten:
# Auf dem KVM-Host (192.168.178.99):
sudo iptables -t nat -A PREROUTING -p tcp --dport 8085 -j DNAT --to-destination 10.50.1.5:8085
sudo iptables -A FORWARD -p tcp -d 10.50.1.5 --dport 8085 -j ACCEPTConfiguration Updates
# Reconfigure specific components
make configure-dns # Update DNS overrides
make configure-bridge # Reconfigure SOCSuite connectivity
ansible-playbook site.yml --tags verify # Health checksBackup/Restore
# Backup VM disks
virsh pool-list
virsh vol-list simulationlab
# Export configuration
tar -czf simulationlab-backup.tar.gz \
terraform.tfvars \
ansible/group_vars/all/vault.yml \
~/.ssh/simulationlab*🌐 Multi-Site Deployment
Central Management
# Deploy multiple labs
for site in office-a office-b datacenter; do
git clone simulationlab lab-$site
cd lab-$site
# Site-specific configuration
cat > terraform/terraform.tfvars <<EOF
deployment_site = "$site"
host_ip = "$(./scripts/detect-site-config.sh ip)"
ad_domain_name = "${site}.dev.imvee.de"
EOF
make apply && make configure
cd ..
doneRemote Access
# SSH tunneling for remote management
ssh -L 3000:10.50.1.1:3000 host@remote-lab
# Access lab via http://localhost:3000
# VPN integration
# Configure site-to-site VPN between labs📊 Verification Checklist
Infrastructure
- All VMs running (
make status) - Network connectivity (ping between VMs)
- DNS resolution working
- Windows domain joined successfully
Services
- IMVEE backend healthy (
curl http://api.socsuite.dev.imvee.de/health) - Satellite agents registered
- Firewall rules active (
ssh firewall 'sudo nft list table inet filter') - Suricata IDS running (
ssh firewall 'sudo systemctl status suricata')
SOCSuite Integration
- Agent heartbeats in IMVEE
- Log flow to OpenSearch
- Assets visible in IMVEE dashboard
- SimLab-VMs als
simlab=truegetaggt (10.50.0.10, 10.50.1.10, 10.50.1.20, 10.50.1.30) - simlab-runner auf simlab-mgmt erreichbar (
curl http://10.50.1.5:8085/health) - SOCSuite
/simulationlabSeite zeigt VMs und Szenarien
⚡ Quick Recovery
Complete Reset
# Full reset with automatic backup
./scripts/terraform-migrate.sh reset
# Fresh deployment
make apply && make configureNetwork Configuration Migration
# Migrate existing deployment to new network ranges
./scripts/terraform-migrate.sh migrateState/Config Mismatch Recovery
# When terraform.tfvars and state are inconsistent
./scripts/terraform-migrate.sh backup
make destroy
make apply # Uses current terraform.tfvars🎛️ Advanced Configuration
Custom Networks
# Use existing bridge
host_interface = "br0"
# Multiple network segments
wan_cidr = "172.16.0.0/24"
lan_cidr = "172.16.1.0/24"
dmz_cidr = "172.16.2.0/24" # Future: DMZ segmentPerformance Tuning
# Geringeres Sizing-Profil für weniger Hardware
lab_size = "small" # in terraform.tfvars (VM-Auswahl + Specs, Refs #14)
# Storage optimization
storage_type = "ssd"
storage_cache = "writethrough"This guide enables complete SimulationLab portability - deploy identical environments anywhere with consistent, automated configuration! 🚀
Quick Start
Deploy SimulationLab on any KVM-capable Linux host in 3 commands.
🚀 One-Command Deployment
# Clone the repository
git clone https://gitlab.com/imvee/simulationlab.git
cd simulationlab
# Setup host dependencies and auto-detect configuration
./scripts/setup-host-portable.sh
# Deploy infrastructure and configure all services
make apply && make configureThat's it! 🎉 Your complete Enterprise lab is ready.
📋 What You Get
After successful deployment:
- Firewall VM - nftables + Suricata IDS
- Windows Server 2022 - Active Directory Domain Controller
- Windows 11 - Domain-joined workstation
- Ubuntu 24.04 - Linux test VM
- SOCSuite Integration - Satellite agents on all VMs
🌐 Access Your Lab
VM-IPs abfragen
terraform output vm_ips
# Ausgabe:
# {
# "firewall_lan" = "10.50.1.1"
# "win_server" = "10.50.1.10"
# "win_desktop" = "10.50.1.20"
# "ubuntu" = "10.50.1.30"
# }VM Access
# SSH zu Linux VMs
make ssh-firewall
make ssh-ubuntu
# RDP zu Windows VMs (xfreerdp)
xfreerdp3 /v:10.50.1.10 /u:Administrator /p:$(cat .secrets/windows_admin_password) /cert:ignore
xfreerdp3 /v:10.50.1.20 /u:Administrator /p:$(cat .secrets/windows_admin_password) /cert:ignore🔑 Default Credentials
Linux VMs (SSH)
- User:
lab - Auth: SSH key (
~/.ssh/simulationlab)
Windows VMs (RDP/WinRM)
- User:
Administrator - Password:
cat .secrets/windows_admin_password
Active Directory
- Domain:
simlab.dev.imvee.de - Domain Admin:
Administrator@simlab.dev.imvee.de - Password: Same as Windows admin
✅ Verification Checklist
# VM-Status
make status
# IPs anzeigen und Netzwerk testen
terraform output vm_ips
ping 10.50.1.1 # Firewall
# SOCSuite Agents
ansible all -m ping
ansible windows -m ansible.windows.win_ping
# SOCSuite Backend (läuft auf K8s am Host)
curl http://192.168.178.99:8080/health📊 Resource Usage
Default allocation (customizable):
- Total vCPU: 12 cores
- Total RAM: 12 GB
- Total Disk: 150 GB
🔄 Multi-Site Deployment
Deploy at different locations:
# Site A
git clone simulationlab lab-office-a
cd lab-office-a
./scripts/setup-host-portable.sh && make apply
# setup-host-portable.sh erkennt Netzwerk automatisch und vermeidet Konflikte
# Site B
git clone simulationlab lab-datacenter-b
cd lab-datacenter-b
./scripts/setup-host-portable.sh && make applyJede Deployment ist komplett unabhängig. Die IPs werden automatisch ermittelt
und in terraform/terraform.tfvars gespeichert.
⚠️ Troubleshooting
VM won't start: make fix-boot (Windows UEFI boot order)
Network conflicts: Auto-detected, check terraform.tfvars for alternative ranges
Missing Windows ISOs: Download manually to images/ directory
Permission issues: Re-login after setup (libvirt group membership)
See Troubleshooting Guide for more details.
🧪 Validation (vor jedem Commit Pflicht)
# Terraform
cd terraform && terraform fmt -check && terraform validate && cd ..
# Ansible
yamllint ansible/
ansible-lint ansible/site.yml # Config: ansible/.ansible-lint
# Shell-Scripts
shellcheck -S warning scripts/*.sh lib/logging.shAlle drei müssen fehlerfrei durchlaufen. Ergebnis im zugehörigen GitLab-Issue dokumentieren (Kommentar mit Commit-Hash).
⏭️ Next Steps
- VM Management Guide (Quelle:
../usage/vm-management.md) - Snapshots, backups, cloning - SOCSuite Integration (Quelle:
../usage/socsuite-integration.md) - Agent monitoring, log analysis - Network Planning (Quelle:
site-config.md) - Advanced network customization - Service Monitoring (Quelle:
../usage/monitoring.md) - Health checks and log analysis
Deployment-Strategie
Verified 2026-09-18 (E2E green on
main, Refs simulationlab#1/#2/#3/#4/#6)
TL;DR
SimulationLab is a libvirt/KVM lab, not a Kubernetes workload. It is deployed by
Terraform + Ansible via the TeamCity pipeline — with a VCS trigger, so a push to
main is automatically deployed to the lab host:
git push → main ──► TeamCity VCS trigger ──► MainPipeline
├─ 1️⃣ Validate: terraform fmt/validate + ansible-lint
├─ 2️⃣ Validate: shellcheck
├─ 3️⃣ Deploy: terraform apply (reconciles the LIVE lab)
├─ 4a: Enrollment token (SOCSuite BFF)
└─ 4b: Deploy: satellite agents (Ansible)Manual one-command deploy still exists: make apply && make configure
(Quick Start (Quelle: quickstart.md)). After a host reboot the lab comes up automatically
(see Boot Behavior).
Why not ArgoCD?
The recurring question (e.g. "like SOCSuite?") — the decision is No:
- ArgoCD is a k8s GitOps controller. It can only sync Kubernetes manifests into a cluster. SimulationLab has no k8s target: it is VMs (libvirt) configured by Ansible.
- The k3s cluster on hpz600 (namespace
imvee-dev) hosts the containerized services (SOCSuite, docs, orchestrator, Keycloak, …). ArgoCD apps there:docs-dev,orchestrator-dev. There is no ArgoCD app for SimulationLab by design — andsocsuite-devcurrently runs via the local k3d registry, not ArgoCD either. - The SimLab equivalent of "push → build → auto-deploy" is the TeamCity VCS trigger
(active on
mainsince 2026-09-16). TeamCity plays the role both "build system" and "deploy controller" — the Terraform/Ansible steps are the deployment.
TeamCity project
| Server | TeamCity 2026.2 on hpz600, Docker stack (teamcity-server + 3 agents, proxy :8088/:8446, UI :8111) |
| Settings | Versioned settings: .teamcity/settings.kts (USE_FROM_VCS, compiled by the server on push) |
| VCS root | https://gitlab.com/imvee/simulationlab.git, branch main |
| Server TZ | UTC (cron expressions are UTC!) |
Build types
| Build type | Purpose | Trigger |
|---|---|---|
🚀 Pipeline: Validate & Deploy (SimulationLab_MainPipeline) | Full E2E: validate → terraform apply → enrollment token → satellite Ansible | VCS on main (auto dev-deploy) |
🗑️ Manual: Destroy Infrastructure (SimulationLab_DestroyInfra) | terraform destroy (everything) — destructive | Manual + DESTROY_CONFIRM safety gate |
🧪 Provision: Demo (Manuell) (SimulationLab_DemoProvision) | Demo profile (parameter sim_profile) | Manual |
🗑️ Destroy: Demo (Manuell) (SimulationLab_DemoDestroy) | Demo teardown — destructive | Manual + DESTROY_CONFIRM safety gate |
🧹 Reconcile: Terraform (Manuell) (SimulationLab_Janitor) | terraform plan + apply on demand (drift fix, no-op when drift-free) | Manual — daily schedule removed 2026-09-18 (Refs #6) |
How the build agent deploys the live lab
The agent containers (Docker on hpz600) run the same Terraform/Ansible as the host. Two former blockers (Refs #1) are solved, so the agent reconciles the live lab instead of recreating it:
- Shared tfstate: backend
localat/mnt/data/simulationlab/tfstate/simulationlab.tfstate— host and all agent containers mount the same path (*.tfstateis gitignored, the state is never in VCS). - libvirt access (DEV-1063, since 2026-11-02): the lab runs on the simlab host
(192.168.178.127) — the libvirt provider connects remote via TLS:
qemu+tls://192.168.178.127:16514/system(set interraform/terraform.tfvars, client certs~/.pki/libvirt/{clientcert,clientkey}.pemon the TC host). The former libvirt-sock mount is obsolete (kept harmlessly). - VM SSH/WinRM access (DEV-1080): the VM LAN (10.50.x) is isolated on the simlab
host — not reachable from the agents.
generate-inventory.shauto-detects the access mode (VM_ACCESS=auto|direct|port-forward): from the KVM host itself → direct; from anywhere else (agents, Mac) → via the port-forward units on the simlab host (simlab-portforward-vms.service): SSH 2205 (mgmt) / 2210 (firewall) / 2230 (ubuntu-server) / 2240 (kali), WinRM 5986 (win-server) / 5987 (win-desktop), RDP 3310/3320. The inventory then carriesansible_host=192.168.178.127+ansible_port=<forward>. - Shared
TMPDIR(/mnt/data/simulationlab/tf-cloudinit) so provider-generated cloud-init ISOs don't drift between host and agent checkouts. - VM auth: agents use
sshpass(VMs authenticate by password, see Access & Login). - Satellite enrollment: the pipeline logs into the SOCSuite BFF
(
/v1/auth/credentials→/v1/enrollment-tokens) and passes the token to Ansible. First-time installs need bothIMVEE_API_KEY(agent gate) andIMVEE_ENROLLMENT_TOKEN(enroll POST) inagent.env— the Ansible templates handle this. The satellite role is version-guarded (version_compare): no download and no downgrade when the installed binary is newer.
Auto-deploy behavior (what a push does)
- Every push to
mainqueues one MainPipeline build; consecutive pushes queue consecutive builds (they run as agents become free). terraform applyis idempotent: no infra change in the push ⇒ no-op (a few seconds). Changed.tf/.tfvars⇒ the diff is applied to the live VMs.- Changed Ansible playbooks/roles ⇒ re-applied to the VMs (idempotent where possible;
satellite agents restart only when their
agent.envcontent changes — intentional for the dev lab). - There is no automatic rollback. If a push breaks the pipeline, the build fails — the validate steps (1️⃣/2️⃣) run before any change is applied as a first line of defense. A red build does not revert a partially applied change.
- Docs-only, Makefile-only, etc. pushes also run the full pipeline (harmless no-ops for terraform/ansible). A VCS path filter is the escape hatch if that becomes noise.
Boot behavior
Everything the lab needs starts automatically after a host reboot (verified 2026-09-18 after a real reboot):
| Component | Mechanism |
|---|---|
| VMs (ordered: firewall → win-server → rest in parallel) | simlab-boot.service (enabled, scripts/simlab-boot.sh, --skip-running default) |
| TeamCity stack (server + 3 agents + proxy) | Docker restart: unless-stopped |
| k3s + libvirtd | systemd (enabled) |
No daily reconciliation is needed because of this — which is why the Janitor schedule was removed (Refs #6).
Verification status (2026-09-18)
- MainPipeline E2E green twice on current
main(builds #9 + #10, VCS-triggered by the fix commits of #4): validate → terraform apply no-op (19 resources) → enrollment → satellite Ansible on all Linux VMs. - All Linux agents online in the SOCSuite BFF (
simlab-mgmt,ubuntu-server,kali). - Remaining known items: satellite v0.1.0 package uses the old register protocol (satellite#4: publish v0.4.1), VM netplan still lists 8.8.8.8 (#5: resolver hardening against systemd-resolved negative caching).
SSH-Zugang von macOS
Problem gelöst ✅
Das ursprüngliche SSH-Problem wurde behoben:
- Root Cause: VMs wurden ohne SSH-Key erstellt (simulationlab.pub existierte nicht beim ersten Setup)
- Lösung: VMs
firewallundsimlab-mgmtneu erstellt mit korrektem SSH-Key - Username-Fixes: Alle SSH-Targets von
lab@aufubuntu@korrigiert
SSH-Konfiguration für macOS
Erstelle auf dem macBook die Datei ~/.ssh/config mit folgendem Inhalt:
# SimulationLab VMs über Development-Server
Host simlab-server
HostName 192.168.178.99
User ubuntu
Port 22
IdentityFile ~/.ssh/id_rsa # oder dein Standard-Key
Host simlab-mgmt
HostName 10.50.1.5
User ubuntu
ProxyJump simlab-server
IdentityFile ~/.ssh/simulationlab
Host simlab-firewall
HostName 10.50.1.1
User ubuntu
ProxyJump simlab-server
IdentityFile ~/.ssh/simulationlab
Host simlab-ubuntu
HostName 10.50.1.30
User ubuntu
ProxyJump simlab-server
IdentityFile ~/.ssh/simulationlab
Host simlab-kali
HostName 10.50.1.40
User kali
ProxyJump simlab-server
IdentityFile ~/.ssh/simulationlabSSH-Key kopieren
Du benötigst den privaten SSH-Key vom Server auf dem macBook:
# Vom Server zum macBook kopieren
scp ubuntu@192.168.178.99:~/.ssh/simulationlab ~/.ssh/simulationlab
chmod 600 ~/.ssh/simulationlabVerbindung testen
# Von macBook zu simlab-mgmt
ssh simlab-mgmt
# Von macBook zu firewall
ssh simlab-firewall
# Von macBook zu ubuntu VM
ssh simlab-ubuntuNetzwerk-Übersicht
Internet
│
macBook (dein lokales Netz)
│
├─ SSH ──→ 192.168.178.99 (Development-Server)
│
└─ SimLab LAN 10.50.1.0/24
├─ 10.50.1.1 (firewall)
├─ 10.50.1.5 (simlab-mgmt)
├─ 10.50.1.10 (win-server)
├─ 10.50.1.20 (win-desktop)
├─ 10.50.1.30 (ubuntu-server)
└─ 10.50.1.40 (kali)Troubleshooting
Falls SSH-Verbindung nicht funktioniert:
-
Key-Permissions prüfen:
chmod 600 ~/.ssh/simulationlab -
SSH-Agent verwenden:
ssh-add ~/.ssh/simulationlab -
Debug-Verbindung:
ssh -v simlab-mgmt -
Server-seitig testen:
# Auf dem Development-Server ssh -i ~/.ssh/simulationlab ubuntu@10.50.1.5
Status der VMs
Die VMs wurden am 2026-05-05 neu erstellt mit korrektem SSH-Key. Alle VMs sollten den ubuntu-User (außer Kali: kali) mit dem simulationlab SSH-Key akzeptieren.
Erstellt: 2026-05-05 von agent-simulationlab
GitLab Issue: #14
Nächste Schritte
- One-Click Deployment — Lab mit einem Befehl aufsetzen (empfohlen für Test-Server)
- Betrieb — Tägliche Befehle und VM-Management
- Test-Szenarien — Agent testen und Szenarien ausführen
- Troubleshooting — Häufige Probleme und Lösungen