Hooks
Post-clone Hook
This post-clone hook lets you run arbitrary code after the machine has been cloned.
- Create a file called post-clone.sh inside the /var/lib/kvm/yourtemplate directory or the /var/lib/lxc/yourtemplate one.
- The current working directory points to the active machine.
Here's the security catch: the script runs with root privileges, so a poorly written script could write to any file on the entire filesystem.