IMVEEDev Portal

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-linux

VM Lifecycle

Start / stop a VM

virsh start ubuntu-server
virsh shutdown ubuntu-server    # graceful
virsh destroy ubuntu-server     # force off

Recreate 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

ServicePurpose
sshRemote access
cloud-initInitial setup (one-time)
satellite-agentSOCSuite monitoring (after Ansible run)

All Make Targets

CommandDescription
make setupPrepare host — KVM, libvirt, storage pool (one-time, sudo)
make initInitialise Terraform
make planShow Terraform plan
make applyCreate VMs
make destroyDelete all VMs
make fix-bootFix Windows UEFI boot order (after apply)
make configureConfigure all VMs (correct order)
make configure-firewallConfigure firewall VM only
make configure-adConfigure AD domain controller only
make configure-windowsConfigure Windows VMs only (domain join + baseline)
make configure-linuxConfigure Linux VMs only
make statusShow VM status (virsh)
make ssh-firewallSSH into firewall VM
make ssh-ubuntuSSH 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.40

All 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.json

Agent logs on Ubuntu VM

# Password auth (Infisical `simlab-linux-password`)
ssh ubuntu@10.50.1.30
journalctl -u imvee-satellite -f

Secrets 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

On this page