mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-27 09:45:00 +02:00
ff64874109
Performance / resource fixes in the generated service: - VM IP detection only queries the QEMU guest agent when it is actually enabled in the VM config. Previously every VM without an agent stalled the loop for the full `qm guest cmd` timeout on each cycle; the timeout is also lowered from 8s to 5s. - Skip the ARP/ping fallback for VMs entirely when the guest agent already returned addresses, avoiding needless ping probes every run. - Snapshot `ip neighbor show` once per host instead of invoking it per MAC in the VM and LXC lookups. - Lower ping verification to a 1s timeout (`-W 1`). ShellCheck cleanup in the installer: - Define color variables directly instead of via $(echo ...) (SC2116/SC2028). - Use `read -rp` everywhere (SC2162). - Replace Unicode quotes with ASCII in a status message (SC1111).