mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
add: vm shutdown script
This commit is contained in:
8
helper_scripts/shutdown-vms.sh
Executable file
8
helper_scripts/shutdown-vms.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user