Hooks
Post-clone Hook
The post-clone hook allows you to run custom code once the machine has been cloned.
- Create a file called post-clone.sh in the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate folder.
- The working directory is set to the cloned machine's directory.
Security note: The script runs with root privileges, so an incorrectly written script could write to any file on the entire file system.