Hooks

Post-clone Hook

The post-clone hook enables you to execute custom code once the machine cloning process is complete.

  1. Generate a file named post-clone.sh and place it in the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate directory.
  2. 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.