Hey there,
i get the aforementioned error (Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 73.) when i'm using the following script on the terminal to start my VMs:
shutdown and stop will work without problems.
also the VMs will start anyway.
the cluster is newly setup, with the newest version ov pve with a subscription
Full Output after use of the script:
i get the aforementioned error (Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 73.) when i'm using the following script on the terminal to start my VMs:
Code:
#!/bin/bash
# Prüfen der Parameter
if [ $# -ne 3 ]; then
echo "Usage: $0 <start_vm_id> <end_vm_id> <action>"
echo "action: start | stop | shutdown"
exit 1
fi
START_ID=$1
END_ID=$2
ACTION=$3
# Prüfen ob Aktion gültig ist
if [[ "$ACTION" != "start" && "$ACTION" != "stop" && "$ACTION" != "shutdown" ]]; then
echo "Ungültige Aktion: $ACTION. Nur 'start', 'stop' oder 'shutdown' erlaubt."
exit 1
fi
# Alle VMs im Cluster abrufen
VM_LIST=$(pvesh get /cluster/resources --type vm --output-format json)
for ((VMID=START_ID; VMID<=END_ID; VMID++)); do
NODE=$(echo "$VM_LIST" | jq -r '.[] | select(.vmid=='$VMID') | .node')
if [ -z "$NODE" ]; then
echo "VM $VMID existiert nicht, überspringe..."
continue
fi
echo "$ACTION VM $VMID auf Node $NODE..."
pvesh create /nodes/$NODE/qemu/$VMID/status/$ACTION
done
echo "$ACTION für alle VMs ausgeführt."
shutdown and stop will work without problems.
also the VMs will start anyway.
the cluster is newly setup, with the newest version ov pve with a subscription
Full Output after use of the script:
Code:
root@proxmox001 ~ # ./vm-control.sh 501 504 start
start VM 501 auf Node proxmox001...
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 73.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 73.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 73.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 73.
UPID:proxmox001:002E5138:03AB06A6:68A707BA:qmstart:501:root@pam:
start VM 502 auf Node proxmox002...
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 61.
"UPID:proxmox002:002B2B5D:03AB071C:68A707BC:qmstart:502:root@pam:"
start VM 503 auf Node proxmox003...
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 61.
"UPID:proxmox003:002B2649:03AB06CF:68A707BE:qmstart:503:root@pam:"
start VM 504 auf Node proxmox004...
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN9> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 61.
Use of uninitialized value in split at /usr/share/perl5/PVE/INotify.pm line 1224, <GEN17> line 61.
"UPID:proxmox004:00347FD2:03AB061B:68A707C0:qmstart:504:root@pam:"
start für alle VMs ausgeführt
Last edited: