mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
9 lines
159 B
Bash
Executable File
9 lines
159 B
Bash
Executable File
#!/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
|