install_guest_agent_virsh
Install QEMU guest agent on a running VM via virsh serial console over QNAP SSH, bypassing the need for VM IP address.
Instructions
DESTRUCTIVE: Install QEMU guest agent on a VM via QNAP virsh console.
This SSHes into the QNAP NAS, then uses virsh to send commands to the VM's serial console. Does NOT require knowing the VM's IP address. The VM must be running.
WARNING: Requires SSH credentials for the QNAP NAS (not the VM). The password will be visible in MCP client logs.
This method is less reliable than direct SSH — it sends keystrokes to the VM console and cannot easily verify success. Use install_guest_agent_ssh if the VM is SSH-accessible.
If qnap_ssh_username/password are not provided, falls back to QNAP_USERNAME and QNAP_PASSWORD from the server config.
Args: vm_id: The VM identifier qnap_ssh_username: SSH username for the QNAP NAS (default: QNAP_USERNAME) qnap_ssh_password: SSH password for the QNAP NAS (default: QNAP_PASSWORD) os_family: 'debian' (apt) or 'redhat' (yum). Default: debian confirm: Must be true to execute. Returns a preview otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | ||
| confirm | No | ||
| os_family | No | debian | |
| qnap_ssh_password | No | ||
| qnap_ssh_username | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |