Hooks
Post-clone Hook
The Post-clone hook provides the functionality to execute custom code immediately after a machine cloning operation is complete.
- Generate a file named
post-clone.shwithin the/var/lib/kvm/yourtemplateor/var/lib/lxc/yourtemplatedirectory. - The working directory is set to the context of the current machine.
Security implication: The script runs with root privileges, meaning that an improperly written script could potentially modify any file across the entire file system.