Can I use more than one hookscript per VM?

ravczy

New Member
May 17, 2023
6
0
1
Hello everyone,

I'm currently trying to attach multiple hookscripts to my Proxmox virtual machine, but I seem to be encountering an issue. Here's how I've configured it:

hookscript: /etc/pve/qemu-server/script1 hookscript: /etc/pve/qemu-server/script2

However, when I start the virtual machine, only script2 is executed. I've double-checked the configuration and made sure that both scripts are properly placed and have the necessary permissions.

I would appreciate any insights or suggestions on how to resolve this issue. Has anyone encountered a similar situation or knows the correct way to use multiple hookscripts for a Proxmox VM?

Thank you in advance for your help.
 
Yes, I know. I copied an old configuration. Now I have: hookscript: local:snippets/script1 hookscript: local:snippets/script2
Thank you for your advance.