Add scripts to manage VMs power
This commit is contained in:
6
bash/virt-virsh/vmreboot
Executable file
6
bash/virt-virsh/vmreboot
Executable 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
6
bash/virt-virsh/vmshutdown
Executable 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
6
bash/virt-virsh/vmstart
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
for var in $(grep hosting ../../memlist)
|
||||
do
|
||||
virsh start $var
|
||||
done
|
||||
Reference in New Issue
Block a user