Hooks
Post-clone Hook
The post-clone hook enables you to execute arbitrary code once the machine cloning has been carried out.
- Create a file called post-clone.sh in the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate folder.
- The current directory points to the current machine.
Security implication: The script is executed with root privileges. Writing an incorrect script could write to any file on the entire filesystem.