scripts-root/libvirt/start_domains.sh

7 lines
188 B
Bash
Executable File

#!/bin/sh
# Start all VMs that are in a shutoff state
virsh list --state-shutoff --name | \
while read vm; \
do [ -n "$vm" ] && virsh start $vm && echo "Resumed : $vm"; \
done | column -t