Snapshots & Teardown¶
The snapshot flow now covers all 5 lab VMs, including the new ailab-app host.
Create A Lab-Ready Snapshot¶
This snapshots:
210ailab-dev220ailab-ml230ailab-ds250ailab-app240ailab-attack
Restore¶
For non-interactive rollback in automation:
Then verify:
You should be back to the expected green verify-lab.sh result.
Reference¶
| Command | Result |
|---|---|
bash lab-scripts/lab-snapshots.sh create <name> [desc] |
Snapshot all 5 VMs |
bash lab-scripts/lab-snapshots.sh restore <name> |
Stop, rollback, and restart all 5 VMs |
bash lab-scripts/lab-snapshots.sh --yes restore <name> |
Non-interactive restore for automation |
bash lab-scripts/lab-snapshots.sh list |
List snapshots for all lab VMs |
bash lab-scripts/lab-snapshots.sh delete <name> |
Delete a snapshot from all lab VMs |
bash lab-scripts/lab-snapshots.sh --yes delete <name> |
Non-interactive snapshot cleanup |
Manual VM IDs¶
for vmid in 210 220 230 250 240; do
qm snapshot "$vmid" pre-demo --description "demo checkpoint"
done
Teardown¶
Use the helper script:
That removes the cloned VMs while preserving templates and the bridge. Add --full only if you also want to remove templates and network setup.