Problem
A virtual machine (VM) displays a status with the Problem with Guest Agent indicator, although the QEMU Guest Agent is actually running inside the guest operating system (OS). Specifically:
- reinstalling and restarting the VM does not resolve the issue;
- checking the guest OS of the VM confirms that the agent is running;
- the agent responds to hypervisor commands.
Cause
Desynchronization between the actual state of the agent and the vmwatch monitoring service data.
Diagnostics
To confirm that QEMU Guest Agent is running, and the issue is related to its status display:
- Check that the agent responds to hypervisor commands:
- Go to Nodes → determine the IP address of the node where the VM is running.
- Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
- Connect to the cluster node via SSH:
docker exec -it vm_back bash -c "vssh <cluster_node_ip>" - Determine the internal VM name:
virsh list --all --nameExplanation:Example output53_test00\ntest_vm_0153_test00,test_vm_01are internal VM names.
- Check if the agent responds to commands of the hypervisor:
Upon successful check, the command will return a JSON with the agent version and a list of supported commands:virsh qemu-agent-command "$(virsh list --name | grep -m1 '<internal_vm_name>')" '{"execute": "guest-info", "arguments": {}}'
Example output{"return":{"version":"8.2.2","supported_commands":[{"enabled":true,"name":"guest-get-cpustats","success-response":true},{"enabled":true,"name":"guest-get-diskstats","success-response":true}......If the agent responds, this confirms the issue. If there is no response, check if the service is running inside the guest OS.
- Check if the service is running inside the guest OS.
To complete this step, you will need credentials to log in to the OS.- Access the OS.
- Check the status of the QEMU Guest Agent service depending on the OS:
- Windows OS:
- Open the Services section and check if QEMU Guest Agent is in the list.
- Ensure the service status is In progress. This confirms that the agent is running.
- Linux-based OS:
- In the guest OS command line, run the command:
systemctl status qemu-guest-agent.serviceThe Active status confirms that the agent is running.Example answer● qemu-guest-agent.service - QEMU Guest Agent\n Active: active (running) since ...
- In the guest OS command line, run the command:
- Windows OS:
If all checks yield a positive result, but the platform displays the Problem with Guest Agent indicator, this confirms the issue.
Solution
To resolve the issue:
- Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
- Connect to the cluster node via SSH:
Explanation:docker exec -it vm_back bash -c "vssh <cluster_node_ip>"IP_ADDR— cluster node IP address.
- Restart the VM monitoring service in the vm_back container:
docker exec -it vm_back supervisorctl restart vmwatch - Make sure that the
Problem with Guest Agentindicator is not displayed in the platform interface.
Useful tips
Related topics:
En
Es