I created a simple hookscript based on the example and attached to my VM.
It could be that I cannot read the error properly but it looks like Tool.pm is trying to open a logfile which is already open so it fails.
I threw my code away and used the blank example - that doesn't work either so its not me.
The impractical upshot of it is that cannot start the VM.
Code:
$ qm start 109
hookscript error for 109 on pre-start: command '/mnt/pve/replica/snippets/wms-precheck.pl 109 pre-start'
failed: open3: exec of /mnt/pve/replica/snippets/wms-precheck.pl 109 pre-start
failed: Text file busy at /usr/share/perl5/PVE/Tools.pm line 455
It could be that I cannot read the error properly but it looks like Tool.pm is trying to open a logfile which is already open so it fails.
I threw my code away and used the blank example - that doesn't work either so its not me.
The impractical upshot of it is that cannot start the VM.