Good day,
I have been struggling to find the appropriate phase name to perform in a hookscript when a VM is rebooted.
I noticed from my search that two phases named "pre-restart" and "post-restart" exist, but when I included them in Perl hookscript (it is basically the included example plus the conditionals for both phase names. However, neither phase seems to be triggerd.
Some backup info: I am using PVE 7.0-11. The VM is Ubuntu 20.04. I don't know if this matters, but I tried with both guest agent disabled (default) and enabled (I installed the guest agent on Ubuntu).
If pre-restart doesn't exist anymore. Is there a way to execute a script between VM reboots ?
Thanks,
I have been struggling to find the appropriate phase name to perform in a hookscript when a VM is rebooted.
I noticed from my search that two phases named "pre-restart" and "post-restart" exist, but when I included them in Perl hookscript (it is basically the included example plus the conditionals for both phase names. However, neither phase seems to be triggerd.
Some backup info: I am using PVE 7.0-11. The VM is Ubuntu 20.04. I don't know if this matters, but I tried with both guest agent disabled (default) and enabled (I installed the guest agent on Ubuntu).
If pre-restart doesn't exist anymore. Is there a way to execute a script between VM reboots ?
Thanks,