Aller au contenu
Se connecter

PVE Startup Dependency Check

Outil pour le nœud DevScripts

Script en développement. À essayer sur une machine de test seulement.
Script en développement : le projet demande de ne pas l'utiliser en production.

Accès par défaut

Compte et mot de passe
Aucun identifiant fixe publié par la source : ils se créent à l'installation ou à la première connexion.
Console et SSH
Agit sur le nœud Proxmox lui-même : aucun nouvel accès n'est créé.
Configuration
/etc/default/pve-auto-hook

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.

Voir le code du script ↗

Installer

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/DevScripts/main/tools/pve/dependency-check.sh)"

Configuration : /etc/default/pve-auto-hook

Dans le shell du nœud Proxmox. Exécutez cette commande dans le shell du nœud Proxmox, pas dans une VM. Lisez le script d'abord.

Tutoriel pas à pas

De l'interface de Proxmox jusqu'à la première connexion, pour PVE Startup Dependency Check.

  1. Ouvrez l'interface de Proxmox dans votre navigateur et connectez-vous.

  2. Dans l'arbre de gauche, cliquez sur le nœud à modifier, puis sur « Shell ».

  3. Lisez d'abord le code du script : il agit directement sur le nœud, avec tous les droits.

  4. Copiez cette commande, collez-la dans le shell et appuyez sur Entrée.

    bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/DevScripts/main/tools/pve/dependency-check.sh)"
  5. Répondez aux questions du script. Aucune machine n'est créée : c'est le nœud lui-même qui est modifié.

  6. Vérifiez le résultat dans l'interface de Proxmox avant de passer au nœud suivant.

  7. Le fichier de configuration se trouve ici : /etc/default/pve-auto-hook

À savoir

  • 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_<hostname> where <hostname> is the name or IP of the host to ping. The script will wait until the host is reachable before proceeding with the startup.
  • To wait until a certain TCP port is open, tag the VM or container with dep_tcp_<hostname>_<port> where <hostname> is the name or IP of the host and <port> is the TCP port number. The script will wait until the port is open before proceeding with the startup.
Dans la même catégorie

All Templates

Complément

A script designed to allow for the creation of one of the many free LXC templates. Great for creating system LXCs. The script creates a `*.creds` file in the Proxmox ro…

PVE Netdata

Complément

Netdata is an open-source, real-time performance monitoring tool designed to provide insights into the performance and health of systems and applications. It is often us…

Port 19999

PVE Post Install

Outil pour le nœud

This script provides options for managing Proxmox VE repositories, including disabling the Enterprise Repo, adding or correcting PVE sources, enabling the No-Subscriptio…

Proxmox Backup Server (PBS)

Conteneur LXC

Proxmox Backup Server is an enterprise backup solution, for backing up and restoring VMs, containers, and physical hosts. By supporting incremental, fully deduplicated b…

Mise à jour Port 8007 Accès par défaut

Cockpit

Conteneur LXC

Cockpit is a web-based graphical interface for managing Linux servers. It allows users to perform tasks like configuring networks, managing storage, and monitoring syste…

Mise à jour Port 9090

CronMaster

Complément

Self-hosted cron job scheduler with web UI, live logs, auth and prebuilt binaries provided upstream.

Mise à jour Port 3000