[Top][All Lists]

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

[Qemu-discuss] guest-exec of qemu-guest-agent fails on Windows guest

From: Behrooz Shabani
Subject: [Qemu-discuss] guest-exec of qemu-guest-agent fails on Windows guest
Date: Wed, 22 Mar 2017 21:21:13 +0100

Hi everyone,

We are trying to use guest-exec[0] command of qemu-guest-agent. However, discovered that whatever command we try to run, it ends up with the following error on the host side:

> error: Guest agent is not responding: Guest agent not available for now

An example of what we run on the host side:

> virsh qemu-agent-command --domain armin_1 '{ "execute": "guest-exec", "arguments": { "path": "C:/Windows/System32/ipconfig.exe", "capture-output": false } }'

Because Windows was complaining about `gspawn-win64-helper-console.exe` whenever we ran a command on host, we tried to run it directly from cli and it failed on the following assertion:

> g_assert (argc >= ARG_COUNT); // [1]

For testing purposes, we started giving it more and more argument to see when it will be happy which turned out to be 8 or 9 arguments.

This picture[2] might be a bit more useful as it includes the output of `qemu-ga` in verbose mode.

Any idea how we can solve it and/or what we are doing wrong?

Thanks in advance.

[0] https://github.com/qemu/qemu/blob/fbddc2e5608eb655493253d080598375db61a748/qga/qapi-schema.json#L1024
[1] https://github.com/GNOME/glib/blob/8edcf67b0221efa3c2ada67c44eff29939b1704d/glib/gspawn-win32-helper.c#L208
[2] https://ibin.co/3GTVo4WXfR7a.png


reply via email to

[Prev in Thread] Current Thread [Next in Thread]