Delay VM Start at Boot

jauling

New Member
Feb 10, 2025
7
0
1
Is there a way for Proxmox to delay an arbitrary number of seconds (or minutes) when it starts VMs at boot up? I am trying to improve recovery when I have power outages in my apartment. I'm not in a position to add a UPS to my deployment. My VMs live on my NAS, and it serves them to Proxmox via NFS. So the best case scenario is for the NFS storage in Proxmox to become online first before VMs on there are started. But, doing a blind wait is also sufficient if checking storage is too complicated.
 
The limit for the global delay is 300 seconds. If this is not enough, the ct/vm-based one doesn't have this limitation.
Eventually an approach with a hook-script getting active in pre-start phase might work. Let the script test for availability of the storage and continue only, if this is given (s. https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_hookscripts).
 
  • Like
Reactions: jauling