PVE Startup Dependency Check
This script checks for the presence of required dependencies before starting a VM or LXC container in Proxmox. It ensures that all referenced storages are available and, additionally, supports the usage of tags to check for specific dependencies. If any required dependency is missing, the VM or container will not start until the issue is resolved. This script is designed to be used as a Proxmox hookscript, which can be applied to both QEMU VMs and LXC containers.
PVE Startup Dependency Check
In Development
This script is currently in active development and may be unstable or incomplete. Use in production environments is not recommended.
This script is currently in active development and may be unstable or incomplete. Use in production environments is not recommended.
Installation
Default install:
1
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVED/raw/main/tools/pve/dependency-check.sh)"
Configuration
Config file:
1
/etc/default/pve-auto-hook
Notes
Execute within the Proxmox shell
The script supports --install (default), --status and --uninstall for clean lifecycle management.
To wait until a certain host is available, tag the VM or container with
dep_ping_</code> where </code> is the name or IP of the host to ping. The script will wait until the host is reachable before proceeding with the startup.</div> </div> To wait until a certain TCP port is open, tag the VM or container with dep_tcp__</code> where </code> is the name or IP of the host and </code> is the TCP port number. The script will wait until the port is open before proceeding with the startup.</div> </div> --- This post is licensed under CC BY 4.0 by the author.