Hooks

Post-clone Hook

The Post-clone hook enables the execution of custom scripts once the machine cloning process is complete.

  1. Generate a file named post-clone.sh within the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate directory.
  2. Be aware that the working directory will be set to the specific machine being processed.

Important security note: This script runs with root privileges. Errors in the script logic could potentially result in unauthorized modifications to any file across the entire file system.