]> git.proxmox.com Git - pve-docs.git/blobdiff - qm.adoc
Fixed typo in Ceph Metadata Server documentation
[pve-docs.git] / qm.adoc
diff --git a/qm.adoc b/qm.adoc
index 43f250a4d7c7875f526cbd5743a45bf22b04fcd7..30e473f9925757d9294d170537a5a90d730a6dfc 100644 (file)
--- a/qm.adoc
+++ b/qm.adoc
@@ -1030,6 +1030,16 @@ ifndef::wiki[]
 include::qm-pci-passthrough.adoc[]
 endif::wiki[]
 
+Hookscripts
+~~~~~~~~~~~
+
+You can add a hook script to VMs with the config property `hookscript`.
+
+ qm 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`.
 
 Managing Virtual Machines with `qm`
 ------------------------------------