Proxmox hookscript events

ravczy

New Member
May 17, 2023
6
0
1
I couldn't find any documentation or a comprehensive list of events for hook scripts online. Are there any other events besides pre/post start/stop that can be captured by a script?

Thank you in advance for the information or for providing a source of information :)
 
I have read this documentation and I am relying on this sample file. I was thinking maybe there are more events that could be captured, like the creation of a virtual machine.

Nevertheless, thank you very much for the information.
 
This example file demonstrates the usage of events related to the start and stop of a virtual machine. Are there any other events that we can handle? For example, pre-migration. Is there a list of events supported by Proxmox available?
 
This example file demonstrates the usage of events related to the start and stop of a virtual machine. Are there any other events that we can handle? For example, pre-migration. Is there a list of events supported by Proxmox available?
Currently, only the events listed in the example hook script are available. There are ideas of adding additional events in the future [1] [2] - you might want to chime in on the Bugzilla discussion. Patches for several kinds of hooks are currently on the mailinglist [3] [4], for instance.

[1] https://bugzilla.proxmox.com/show_bug.cgi?id=1996
[2] https://bugzilla.proxmox.com/show_bug.cgi?id=2530
[3] https://lists.proxmox.com/pipermail/pve-devel/2022-October/054214.html
[4] https://lists.proxmox.com/pipermail/pve-devel/2023-January/055542.html