Hooks
Post-clone Hook
The post-clone hook lets you run arbitrary code after a machine has been cloned.
- Create a file called post-clone.sh inside the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate directory.
- The current directory points to the cloned machine.
Security implication: The script is executed with root privileges, so an incorrect script could potentially write to any file on the entire filesystem.