Hello everyone!
I got Windows Server 2016 guest OS with installed qemu guest agent.
Screenshots here:
https://gyazo.com/6c9c4f6030d3a7843552f072e34f29fc
https://gyazo.com/b08ea8140edfb3f1b5cf3626e224c4c4
I try to run some commands inside guest os via QEMU guest agent.
For example, if I connct to agent via socat
socat /var/run/qemu-server/109.qga -
and then i send command like this :
{"execute":"guest-exec", "arguments":{"path":"c:\windows\notepad.exe"}}
I see notepad.exe process in Windows, its good
https://gyazo.com/387d3b60194e826eb1fa27c0967f0eab
but if I try to reboot Windows via this command I got nothing
{"execute":"guest-exec", "arguments":{"path":"C:/Windows/System32/cmd.exe","arg":["/C","shutdown", "-r", "-f", "-t 00"]}}
Windows don't reboot, but I see pid in output
https://gyazo.com/bbd815059dfb7704a6d5a1e033deacd2
What I do Wrong?
I got Windows Server 2016 guest OS with installed qemu guest agent.
Screenshots here:
https://gyazo.com/6c9c4f6030d3a7843552f072e34f29fc
https://gyazo.com/b08ea8140edfb3f1b5cf3626e224c4c4
I try to run some commands inside guest os via QEMU guest agent.
For example, if I connct to agent via socat
socat /var/run/qemu-server/109.qga -
and then i send command like this :
{"execute":"guest-exec", "arguments":{"path":"c:\windows\notepad.exe"}}
I see notepad.exe process in Windows, its good
https://gyazo.com/387d3b60194e826eb1fa27c0967f0eab
but if I try to reboot Windows via this command I got nothing
{"execute":"guest-exec", "arguments":{"path":"C:/Windows/System32/cmd.exe","arg":["/C","shutdown", "-r", "-f", "-t 00"]}}
Windows don't reboot, but I see pid in output
https://gyazo.com/bbd815059dfb7704a6d5a1e033deacd2
What I do Wrong?