Hooks
Post-clone Hook
The post-clone hook enables you to execute custom code once the machine cloning process is complete.
- Generate a file named post-clone.sh and place it in the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate directory.
- Be aware that the current working directory references the specific machine being processed.
Security consideration: The script runs with root privileges. Consequently, poorly written scripts may have the capability to modify any file across the entire file system.