From 5b7e662dd6d8c2cb8dc31dd63803712e9d962ef0 Mon Sep 17 00:00:00 2001 From: Abhishek Srivastava Date: Mon, 19 Dec 2022 15:10:46 +0530 Subject: [PATCH] qm-guest-exec: add page (#9133) * qm-guest-exec: add page * Added specified changes * Update pages/linux/qm-guest-exec.md * Update pages/linux/qm-guest-exec.md * Update pages/linux/qm-guest-exec.md * Update pages/linux/qm-guest-exec.md * Apply suggestions from code review --- pages/linux/qm-guest-exec.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/qm-guest-exec.md diff --git a/pages/linux/qm-guest-exec.md b/pages/linux/qm-guest-exec.md new file mode 100644 index 000000000..5c683be69 --- /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`