tmp-iac/centos/scripts/on.sh

7 lines
130 B
Bash
Executable file

#!/bin/bash
for vm in $(virsh list --all --name --state-shutoff); do \
echo "[*] Starting vm: $vm"; \
virsh start $vm; \
done