Repository navigation
Replies: 1 comment
|
Thanks for the write-up, Michael. v0.7.4 adds SSH for Linux VMs. Add a Both Paramiko and system OpenSSH passed against a test SSH server. The Guest Agent is still the default. If SSH drops after the guest starts the command, the tool reports the failure and leaves the decision to retry with you. In testing, replaying the command through the Guest Agent after losing the SSH response ran it twice. The polling test didn’t reproduce the crash you saw. If it happens again, the Proxmox and guest-agent versions and the log lines around the EOF would help track it down. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The draft below is an analysis of a local Ai that is using ProxmoxMCP-Plus to access my LXC and VMs from Open WebUI.
From time to time an agents stops working and I've to restart it manually in SSH.
Please keep in mind that this may not be accurate, however, I hope you get the point. Nevertheless, I'm clueless if the suggestions are possbile to implement at, if they make sense.
Cheers,
Michael
Summary
execute_vm_commandcurrently runs exclusively through the QEMU guest agent. In some setups – especially VMs hosting MCP stacks with a high volume of queries – the constant polling (guest-ping/guest-exec/exec-status) overloads the virtio-serial channel, and the guest agent repeatedly crashes (symptom:500 Internal Server Error: Failed to start command; in the agent log:received EOFroughly every 100 ms).LXC containers already support SSH-based execution (
execute_container_commandvia SSH +pct exec). QEMU VMs should get the same SSH option.Current behavior
execute_vm_command→VMConsoleManager.execute_command()→ QEMU agentexec+ pollingexec-statusevery second.sshconfiguration is only used for node commands (allow_node_commands) and LXC (pct exec) – not for VMs.Proposed change
Add an SSH execution path for QEMU VMs, modeled on the existing LXC path:
allow_vm_ssh_commands/vm_ssh, with guest connection options:user,key_file,port,known_hosts_file,strict_host_key_checking,prefer_ssh_clientguest network-get-interfaces).execute_vm_commandbehavior:Why
guest-ping).Acceptance criteria
execute_vm_commandcan run inside the guest via SSH when configuredprefer_ssh_client(system SSH) and the built-in (paramiko) SSH connectionReferences / affected code
proxmox_mcp/tools/console/manager.py–VMConsoleManager(agent exec + 1s polling)proxmox_mcp/tools/console/container_manager.py– existing SSH +pct execpattern (template)proxmox_mcp/config/models.py–SSHConfig(existing model, extendable)All reactions