diff --git a/pages/linux/qm-guest-exec.md b/pages/linux/qm-guest-exec.md new file mode 100644 index 0000000000..5c683be691 --- /dev/null +++ b/pages/linux/qm-guest-exec.md @@ -0,0 +1,20 @@ +# qm guest exec + +> Execute a specific command via a guest agent. +> More information: . + +- Execute a specific command via a guest agent: + +`qm guest exec {{vm_id}} {{command}} {{arg1 arg2 ...}}` + +- Execute a specific command via a guest agent asynchronously: + +`qm guest exec {{vm_id}} {{arg1 arg2 ...}} --synchronous 0` + +- Execute a specific command via a guest agent with a specified timeout of 10 seconds: + +`qm guest exec {{vm_id}} {{arg1 arg2 ...}} --timeout {{10}}` + +- Execute a specific command via a guest agent and forward input from STDIN until EOF to the guest agent: + +`qm guest exec {{vm_id}} {{arg1 arg2 ...}} --pass-stdin 1`