Hooks
Post-clone Hook
The post-clone hook lets you run your own code right after a machine has been cloned.
- Create a script file named post-clone.sh inside your template folder, either /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate.
- The working directory will point to the freshly cloned machine.
Security note: The script is executed with root privileges. A faulty script could inadvertently write to any file on the entire filesystem.