Add scripts to manage VMs power

This commit is contained in:
2025-11-29 13:38:56 +07:00
parent 6deb9c073a
commit 21a1b017ad
3 changed files with 18 additions and 0 deletions

6
bash/virt-virsh/vmreboot Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/bash
for var in $(grep hosting ../../memlist)
do
virsh reboot $var
done

6
bash/virt-virsh/vmshutdown Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/bash
for var in $(grep hosting ../../memlist)
do
virsh shutdown $var
done

6
bash/virt-virsh/vmstart Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/bash
for var in $(grep hosting ../../memlist)
do
virsh start $var
done