This guide explains how to export the configured VM to an OVA file for distribution and how recipients can import and run it without needing to provision anything.
- VirtualBox ≥ 7.0 installed
- Lab VM fully provisioned (
vagrant upcompleted successfully) - ~15 GB free disk space for the export
# Inside the repository directory on your host:
vagrant ssh -c "sudo /opt/scripts/check_services.sh"All services (caldera, suricata, jupyter) should show active.
SSH into the VM and remove unnecessary files to reduce OVA size:
vagrant ssh
# Inside the VM:
sudo apt-get clean
sudo apt-get autoremove -y
sudo rm -rf /tmp/*
sudo rm -rf /var/log/*.gz /var/log/*.1
sudo truncate -s 0 /var/log/suricata/eve.json
sudo truncate -s 0 /var/log/suricata/fast.log
sudo dd if=/dev/zero of=/EMPTY bs=1M 2>/dev/null || true
sudo rm -f /EMPTY
sudo sync
# Exit the VM
exit# On your host machine (in the repo directory):
vagrant haltImportant: The VM must be powered off (not suspended) before exporting.
- Open VirtualBox Manager
- Find the VM named SURI-CALDERA-IDS-LAB
- Go to File → Export Appliance... (or right-click → Export)
- Select the VM and click Next
- Configure the export:
- Format: OVF 2.0
- File:
SURI-CALDERA-LAB.ova(choose a location with enough free space) - MAC Address Policy: Strip all network adapter MAC addresses (recommended)
- Click Next, review the appliance settings
- Click Export and wait (~5-15 minutes depending on disk speed)
# Find the VM UUID
VBoxManage list vms | grep SURI-CALDERA
# Export to OVA (replace VM_UUID with the actual UUID or name)
VBoxManage export "SURI-CALDERA-IDS-LAB" \
--output "SURI-CALDERA-LAB.ova" \
--ovf20 \
--manifest \
--vsys 0 \
--product "SURI-CALDERA IDS Practice Lab" \
--producturl "https://github.com/xavierlarrivaUPM/SURI-CALDERA-IDS-PRACTICE" \
--vendor "UPM" \
--version "1.0" \
--description "MITRE Caldera + Suricata IDS Practice Lab"The resulting SURI-CALDERA-LAB.ova file (approximately 8-12 GB) can be shared via:
- USB drive
- Network file share / LAN
- Cloud storage (Google Drive, OneDrive, etc.)
- Institutional platforms (Moodle, etc.)
- VirtualBox ≥ 7.0 installed: https://www.virtualbox.org/wiki/Downloads
- ~15 GB free disk space
- Open VirtualBox Manager
- Go to File → Import Appliance...
- Browse to the
SURI-CALDERA-LAB.ovafile - Click Next
- Review the appliance settings:
- Name:
SURI-CALDERA-IDS-LAB - RAM: 4096 MB (adjust if your host has less than 8 GB total)
- CPU: 2 cores
- Name:
- Click Import and wait (~3-5 minutes)
VBoxManage import SURI-CALDERA-LAB.ova \
--vsys 0 --vmname "SURI-CALDERA-IDS-LAB" \
--vsys 0 --memory 4096 \
--vsys 0 --cpus 2If the forwarded ports are missing after import:
VBoxManage modifyvm "SURI-CALDERA-IDS-LAB" \
--nat-pf1 "caldera,tcp,,8888,,8888" \
--nat-pf1 "jupyter,tcp,,8889,,8889" \
--nat-pf1 "ssh,tcp,,2222,,22"- Select SURI-CALDERA-IDS-LAB → click Start (Headless start recommended)
VBoxManage startvm "SURI-CALDERA-IDS-LAB" --type headlessWait ~60 seconds for all services to start.
| Service | URL | Login |
|---|---|---|
| Caldera | http://localhost:8888 | admin / admin |
| Jupyter | http://localhost:8889 | (no password) |
In Jupyter, open SURI_CALDERA_ADVERSARY_PRACTICE.ipynb and start the lab!
ssh -p 2222 vagrant@localhost
# password: vagrantsudo shutdown -h nowVBoxManage controlvm "SURI-CALDERA-IDS-LAB" acpipowerbutton| Item | Size |
|---|---|
| OVA file (compressed) | ~8-12 GB |
| Imported VM disk | ~15-18 GB |
| Running VM RAM | 4 GB |
| Recommended free host disk | 25 GB |
- RAM: If your host has 16+ GB, increase VM RAM to 6-8 GB for better performance
- CPU: Allocate 4 vCPUs if your host has 8+ cores
- Storage: Use an SSD host disk for significantly faster provisioning and operation
- Display: Use headless mode to save host GPU resources
To change RAM/CPU after import in VirtualBox GUI: Settings → System → Motherboard (RAM) / Processor (CPU)
- Make sure VirtualBox is up to date (≥ 7.0)
- Try importing with
--vsys 0 --ignore-legacy-settings
ssh -p 2222 vagrant@localhost
sudo /opt/scripts/start_services.sh
sudo /opt/scripts/check_services.shChange the host-side port in VirtualBox → Settings → Network → Port Forwarding:
- e.g. change host port
8888→18888 - Then access Caldera at
http://localhost:18888