VMmanager Knowledge Base
en En
es Es

Indicator "Problem with Guest Agent" with running agent. "vmwatch" desynchronization

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:

  1. Check that the agent responds to hypervisor commands:
    1. Go to Nodes → determine the IP address of the node where the VM is running.
    2. Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
    3. Connect to the cluster node via SSH:
      docker exec -it vm_back bash -c "vssh <cluster_node_ip>"
    4. Determine the internal VM name:
      virsh list --all --name
      Example output
      53_test00\ntest_vm_01
      Explanation:
      • 53_test00, test_vm_01 are internal VM names.
    5. Check if the agent responds to commands of the hypervisor:
      virsh qemu-agent-command "$(virsh list --name | grep -m1 '<internal_vm_name>')" '{"execute": "guest-info", "arguments": {}}'
      Upon successful check, the command will return a JSON with the agent version and a list of supported commands:
      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.

  2. Check if the service is running inside the guest OS.
    To complete this step, you will need credentials to log in to the OS.
    1. Access the OS.
    2. Check the status of the QEMU Guest Agent service depending on the OS:
      • Windows OS:
        1. Open the Services section and check if QEMU Guest Agent is in the list.
        2. Ensure the service status is In progress. This confirms that the agent is running.
      • Linux-based OS:
        1. In the guest OS command line, run the command:
          systemctl status qemu-guest-agent.service
          Example answer
          ● qemu-guest-agent.service - QEMU Guest Agent\n Active: active (running) since ...
          The Active status confirms that the agent is running.

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:

  1. Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Connect to the cluster node via SSH:
    docker exec -it vm_back bash -c "vssh <cluster_node_ip>"
    Explanation:
    • IP_ADDR — cluster node IP address.
  3. Restart the VM monitoring service in the vm_back container:
    docker exec -it vm_back supervisorctl restart vmwatch
  4. Make sure that the Problem with Guest Agent indicator is not displayed in the platform interface.
Useful tips

Related topics: