On this page
code
VM Installation & Verification
Quickly set up the attacker and victim VM disks
Run
./scripts/check_vms.sh
at any time to verify VM disks and ISO, and see download URLs for missing items.VM Installation
Understanding the run_vms.sh
Script
The run_vms.sh
helper automates setting up a private NAT network and launching two QEMU VMs (attacker & victim) on it. Here’s what happens and why:
Libvirt network setup
- Defines a network (
static200
) with a preconfigured XML (static200.xml
). - Destroys any existing definition, then recreates and starts it, enabling DHCP with static leases.
- Defines a network (
VM image verification
- Checks that
vm/attacker.qcow2
andvm/victim.qcow2
exist before proceeding.
- Checks that
Launching VMs
launch_vm
function configures each VM with: • KVM acceleration and host CPU model for performance
• Memory and CPU count fromMEMORY
/CPUS
env vars (defaults: 2048 MB, 2 CPUs)
• A bridged network interface onvirbr200
with a fixed MAC and IP
• GTK display.- By default, both VMs start; you can specify
attacker
orvictim
as arguments to launch individually.