Re: domain_qemu_agent_command($domain,$cmd,$timeout,$flags)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/25/22 20:04, Simon Fairweather wrote:
> Should there be a way to suppress errors using the flags?
> 
>  error : qemuDomainAgentAvailable:8411 : Guest agent is not responding:
> QEMU guest agent is not connected
> 
> 
> Or is there a libvirt function to check connection status or another way?

This error message is "harmless" in a sense that there is no split brain
of states between libvirt and QEMU. But yeah, your API is going to fail.

You can check for the agent status in the domain XML, for instance with
the following (rewrite in your favorite language):

virsh dumpxml fedora | xpath -e "string(//channel/target[@name='org.qemu.guest_agent.0']/@state)"

Michal




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux