✉️contact@dadesktop.ca 📞+1 204 979 4447

Hooks

Post-clone Hook

The post-clone hook enables you to execute arbitrary code once the machine cloning has been carried out.

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

Security implication: The script is executed with root privileges. Writing an incorrect script could write to any file on the entire filesystem.