Files
lab/pristine
2023-04-03 10:33:04 +00:00

11 lines
340 B
Bash
Executable File

#!/bin/sh
LAB=${LAB:=0}
## Do not touch below this line
HVN="hvn${LAB}-lab.chbtl0.net.ipng.ch"
## Destroy the VMs and bring them back into pristine state
echo "* Restarting VMs from pristine snapshot"
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; virsh destroy \$VM; zfs rollback ssd-vol0/\${VM}@pristine; done"