I have some VMs that depend on a shared storage to be initialized (ZFS pool) before they are started. This takes anywhere from 15-20 minutes.
I want to setup a container with 1st boot priority, and have a script loop to check if the storage has been initiated. The other VMs will only be initialized after this container finishes booting.
How can I trick Proxmox to think the container is still booting while the script loop is running? After the loop finishes, it will complete the "boot" and then Proxmox can move to startup the remaining VMs.
Edit: I just saw /usr/share/pve-docs/examples/guest-example-hookscript.pl. I'll see if I can do something like this on the pre-start phase for now. If there's a better way, please let me know
I want to setup a container with 1st boot priority, and have a script loop to check if the storage has been initiated. The other VMs will only be initialized after this container finishes booting.
How can I trick Proxmox to think the container is still booting while the script loop is running? After the loop finishes, it will complete the "boot" and then Proxmox can move to startup the remaining VMs.
Edit: I just saw /usr/share/pve-docs/examples/guest-example-hookscript.pl. I'll see if I can do something like this on the pre-start phase for now. If there's a better way, please let me know

Last edited: