diff --git a/helper_scripts/shutdown-vms.sh b/helper_scripts/shutdown-vms.sh new file mode 100755 index 0000000..fd4701c --- /dev/null +++ b/helper_scripts/shutdown-vms.sh @@ -0,0 +1,8 @@ +#!/bin/bash +for vm in $(virsh list --state-running --name); do + echo $vm + virsh shutdown "$vm" +done +while virsh list | grep running; do + sleep 5 +done