vm_agent_exec
Execute commands inside a Proxmox VM through the QEMU Guest Agent, passing input to stdin for scripted or remote tasks without direct console access.
Instructions
Execute a command inside a VM via the QEMU Guest Agent.
Args: node: The node name. vmid: The VM ID. command: The command to execute. A string is split into arguments using POSIX shell rules (quote paths containing spaces). A list is passed through unchanged and is recommended for Windows guest paths with backslashes, since POSIX splitting otherwise strips them. input_data: Data to pass to stdin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| vmid | Yes | ||
| command | Yes | ||
| input_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |