2022-12-19 15:10:46 +05:30
|
|
|
# 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:
|
|
|
|
|
2023-08-26 23:00:06 +05:30
|
|
|
`qm guest exec {{vm_id}} {{command}} {{argument1 argument2 ...}}`
|
2022-12-19 15:10:46 +05:30
|
|
|
|
|
|
|
- Execute a specific command via a guest agent asynchronously:
|
|
|
|
|
2023-08-26 23:00:06 +05:30
|
|
|
`qm guest exec {{vm_id}} {{argument1 argument2 ...}} --synchronous 0`
|
2022-12-19 15:10:46 +05:30
|
|
|
|
|
|
|
- Execute a specific command via a guest agent with a specified timeout of 10 seconds:
|
|
|
|
|
2023-08-26 23:00:06 +05:30
|
|
|
`qm guest exec {{vm_id}} {{argument1 argument2...}} --timeout {{10}}`
|
2022-12-19 15:10:46 +05:30
|
|
|
|
2024-10-20 00:02:10 +02:00
|
|
|
- Execute a specific command via a guest agent and forward input from `stdin` until EOF to the guest agent:
|
2022-12-19 15:10:46 +05:30
|
|
|
|
2023-08-26 23:00:06 +05:30
|
|
|
`qm guest exec {{vm_id}} {{argument1 argument2 ...}} --pass-stdin 1`
|