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
pull/1/head
Abhishek Srivastava 2022-12-19 15:10:46 +05:30 committed by GitHub
parent 167e805b17
commit 5b7e662dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# qm guest exec
> Execute a specific command via a guest agent.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- 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`