Flesh out create/destroy/pristine a little bit

This commit is contained in:
Pim van Pelt
2022-10-18 22:53:18 +02:00
parent 65ef59c612
commit 85883eaefb
3 changed files with 58 additions and 0 deletions

10
pristine Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
LAB=${LAB:=0}
## Do not touch below this line
HVN="hvn${LAB}.lab.ipng.ch"
## Bring 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; virsh start \$VM; done"