exec_command
Execute commands inside Proxmox VMs using the QEMU guest agent to manage services, check system status, or perform administrative tasks remotely.
Instructions
Execute a command inside a QEMU VM via the guest agent.
Requires qemu-guest-agent to be installed and running inside the VM. Not supported for LXC containers.
Args: vmid: The numeric ID of the VM. command: The command to execute (e.g. 'hostname', 'df -h', 'systemctl status nginx'). timeout: Max seconds to wait for command completion (default 30, max 300).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmid | Yes | ||
| command | Yes | ||
| timeout | No |