DaDesktop

Hooks

Post-clone Hook

The post-clone hook allows you to run arbitrary code once the machine cloning is completed.

  1. Create a file named post-clone.sh within the /var/lib/kvm/yourtemplate or /var/lib/lxc/yourtemplate folder.
  2. The current directory corresponds to the current machine.

Security implication: The script is executed with root privileges. An incorrectly written script may end up writing to any file on the entire file system.