]> git.proxmox.com Git - pve-docs.git/blobdiff - pct.adoc
add documentation about snippet content-type and hookscripts
[pve-docs.git] / pct.adoc
index 9fa6a3822974fefd7dba1b32cd45b292e3dc71bd..b5b5af30a75305521df984b048ef2cd9ed54f656 100644 (file)
--- a/pct.adoc
+++ b/pct.adoc
@@ -590,6 +590,16 @@ start after those where the parameter is set, and this parameter only
 makes sense between the machines running locally on a host, and not
 cluster-wide.
 
+Hookscripts
+~~~~~~~~~~~
+
+You can add a hook script to CTs with the config property `hookscript`.
+
+ pct set 100 -hookscript local:snippets/hookscript.pl
+
+It will be called during various phases of the guests lifetime.
+For an example and documentation see the example script under
+`/usr/share/pve-docs/examples/guest-example-hookscript.pl`.
 
 Backup and Restore
 ------------------