A Andre_x Active Member Feb 15, 2021 33 3 28 42 Apr 21, 2024 #1 I've a VM that runs Docker that at startup mounts a NFS share where all the container volumes are stored, so I need to start that VM only when the NFS export (on the host) is ready: how do I do that?
I've a VM that runs Docker that at startup mounts a NFS share where all the container volumes are stored, so I need to start that VM only when the NFS export (on the host) is ready: how do I do that?
Dunuin Distinguished Member Jun 30, 2020 14,796 4,834 290 Germany Apr 21, 2024 #2 You could code a hook script that will wait until NFS is ready and only then continues starting the VM: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_hookscripts https://git.proxmox.com/?p=pve-docs.git;a=blob;f=examples/guest-example-hookscript.pl;hb=HEAD There is nothing otherwise implemented in PVE except for a start delay of the VM. Last edited: Apr 21, 2024 Reactions: Andre_x
You could code a hook script that will wait until NFS is ready and only then continues starting the VM: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_hookscripts https://git.proxmox.com/?p=pve-docs.git;a=blob;f=examples/guest-example-hookscript.pl;hb=HEAD There is nothing otherwise implemented in PVE except for a start delay of the VM.
A Andre_x Active Member Feb 15, 2021 33 3 28 42 Apr 21, 2024 #3 Dunuin said: You could code a hook script that will wait until NFS is ready and only then continues starting the VM: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_hookscripts https://git.proxmox.com/?p=pve-docs.git;a=blob;f=examples/guest-example-hookscript.pl;hb=HEAD There is nothing otherwise implemented in PVE except for a start delay of the VM. Click to expand... Thanks!
Dunuin said: You could code a hook script that will wait until NFS is ready and only then continues starting the VM: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_hookscripts https://git.proxmox.com/?p=pve-docs.git;a=blob;f=examples/guest-example-hookscript.pl;hb=HEAD There is nothing otherwise implemented in PVE except for a start delay of the VM. Click to expand... Thanks!