initial commit

This commit is contained in:
Gregor Michels 2023-10-26 16:45:29 +02:00
commit 74412c51a4
9 changed files with 229 additions and 0 deletions

27
manage_autostart Executable file
View file

@ -0,0 +1,27 @@
#!/bin/sh
set -e
PARAM=$1
qm list | tail -n +2 | awk '{ print $1 }' | while read vmid
do
case $PARAM in
0|1)
qm set $vmid --onboot $PARAM
;;
"")
qm config $vmid | grep -e onboot: -e name:
;;
*)
cat << EOF
usage: manage autostart behaviour of vms on node
$0 show autstart state for alle vms on node
$0 <0|1> disables or enables autostart for all vms on node
$0 help this help
EOF
exit 1
;;
esac
done