[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] guest-exec of qemu-guest-agent fails on Windows guest
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] guest-exec of qemu-guest-agent fails on Windows guest |
Date: |
Fri, 24 Mar 2017 14:24:09 +0000 |
Hi
On Fri, Mar 24, 2017 at 2:38 PM Armin Ranjbar <address@hidden> wrote:
> 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
>
I don't have this error, perhaps you could try running the ga under gdb and
see where it hangs?
>
> 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`
>
Where does it complain?
> 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]
>
> 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?
>
>
I am pretty sure you can't call spawn-helper like this in command line.
the warning about child setup function is harmless
Which version qemu-ga are you testing?
> 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
>
> ---
> Armin ranjbar
>
--
Marc-André Lureau