Operations
Daily commands, Make targets and maintenance tasks for the SimulationLab. Aimed at DevOps team members who operate the lab environment.
Daily Commands
# Check VM status
make status
# SSH into Ubuntu VM (static IP + password auth)
ssh ubuntu@10.50.1.30 # Password: Infisical `simlab-linux-password`
# VM IPs are static (no DHCP) — check with:
virsh list --all
# Run Ansible on Linux VMs
make configure-linuxVM Lifecycle
Start / stop a VM
virsh start ubuntu-server
virsh shutdown ubuntu-server # graceful
virsh destroy ubuntu-server # force offRecreate a VM (e.g. after key change)
cd terraform
terraform apply \
-replace=libvirt_domain.ubuntu \
-replace=libvirt_cloudinit_disk.ubuntu_init \
-replace=libvirt_volume.ubuntu_cloudinit \
-replace=libvirt_volume.ubuntu_disk
virsh start ubuntu-server:::warning The OS disk replace deletes all data on the VM. Only do this when truly necessary. :::
IP Addresses (static)
All VMs have static IPs (configured via Cloud-Init/Autounattend) — they do not change after a reboot. There is no DHCP in the lab LAN.
# Regenerate the inventory if it is out of sync
bash scripts/generate-inventory.sh:::info [Issues?] Detailed troubleshooting → Troubleshooting :::
Running Services on ubuntu-server
| Service | Purpose |
|---|---|
| ssh | Remote access |
| cloud-init | Initial setup (one-time) |
| satellite-agent | SOCSuite monitoring (after Ansible run) |
All Make Targets
| Command | Description |
|---|---|
make setup | Prepare host — KVM, libvirt, storage pool (one-time, sudo) |
make init | Initialise Terraform |
make plan | Show Terraform plan |
make apply | Create VMs |
make destroy | Delete all VMs |
make fix-boot | Fix Windows UEFI boot order (after apply) |
make configure | Configure all VMs (correct order) |
make configure-firewall | Configure firewall VM only |
make configure-ad | Configure AD domain controller only |
make configure-windows | Configure Windows VMs only (domain join + baseline) |
make configure-linux | Configure Linux VMs only |
make status | Show VM status (virsh) |
make ssh-firewall | SSH into firewall VM |
make ssh-ubuntu | SSH into Ubuntu VM |
Ansible Order
Ansible configuration must be run in this order:
1. make configure-firewall → gateway/firewall must run first
2. make configure-ad → AD domain controller
3. make configure-windows → domain join + baseline
4. make configure-linux → Linux VMs + Satellite Agent:::warn [Follow the order]
make configure runs all steps in the correct order.
When running individually: firewall must be configured before all other VMs.
:::
Network Topology
Host (IMVEE Dev Server)
│
├── simlab-wan (10.50.0.0/24) — NAT
│ └── Firewall: 10.50.0.10
│
└── simlab-lan (10.50.1.0/24) — Isolated
├── Firewall: 10.50.1.1 (Gateway)
├── simlab-mgmt: 10.50.1.5 (Runner)
├── win-server: 10.50.1.10 (AD DC + DNS)
├── win-desktop: 10.50.1.20
├── ubuntu-server: 10.50.1.30
└── kali: 10.50.1.40All VMs in the LAN have static IPs. The firewall VM routes traffic between WAN and LAN.
Log Access
Firewall VM
# NFTables firewall logs
make ssh-firewall
tail -f /var/log/nftables.log
# Suricata IDS logs
tail -f /var/log/suricata/eve.jsonAgent logs on Ubuntu VM
# Password auth (Infisical `simlab-linux-password`)
ssh ubuntu@10.50.1.30
journalctl -u imvee-satellite -fSecrets Management
:::error [Never commit]
The .secrets/ directory contains passwords and is excluded by .gitignore.
:::
- Infisical is the source of truth:
simlab-linux-password(SSH),simlab-windows-password(RDP/WinRM) - Local copies (gitignored):
.secrets/linux_password,.secrets/windows_admin_password— read automatically by Terraform/Ansible - Enrollment tokens: short-lived, via SOCSuite UI or
scripts/gen-enrollment-token.sh, passed as extra var (not persisted)
Known Limitations
- IP addresses are static — no DHCP in the LAN (inventory is auto-generated)
- Terraform state is local — no remote backend, no team sharing
See Also
- Installation — Set up the SimulationLab
- Test Scenarios — Agent tests and scenarios
- Troubleshooting — Common issues and solutions
- Architecture — Terraform, Ansible, network