From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tpllp-0001tM-Q7 for qemu-devel@nongnu.org; Mon, 31 Dec 2012 15:15:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tpllj-00051a-Bx for qemu-devel@nongnu.org; Mon, 31 Dec 2012 15:15:37 -0500 Received: from mail-ie0-f181.google.com ([209.85.223.181]:59347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tpllj-00051E-7d for qemu-devel@nongnu.org; Mon, 31 Dec 2012 15:15:31 -0500 Received: by mail-ie0-f181.google.com with SMTP id 16so15245756iea.26 for ; Mon, 31 Dec 2012 12:15:30 -0800 (PST) MIME-Version: 1.0 From: Erlon Cruz Date: Mon, 31 Dec 2012 18:14:59 -0200 Message-ID: Content-Type: multipart/alternative; boundary=e89a8f83ac2dbd850f04d22bac28 Subject: [Qemu-devel] Using QEMU guest agent to run programs from guest path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mdroth@linux.vnet.ibm.com Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com --e89a8f83ac2dbd850f04d22bac28 Content-Type: text/plain; charset=ISO-8859-1 Hi, I needed to run an external program in a guest machine. Once this must be triggered by the host, I first thought in qemu-ga. Is that possible? In QEMU help page and in the code I couldn't find such capability. So Im thinking In to implement a new GA QMP command that can run generic programs in the guest. It would be receive/return something like this: {"execute":"execvp", "arguments":{"command":"/bin/ls","cmdargs":"-la","timeout":20}} {"return": {"status": "0", "stdout": "aGVsbG8gd29ybGQhCg==", "stderr": ""}} Any thoughts/ideas about this? Kind Regards, Erlon --e89a8f83ac2dbd850f04d22bac28 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,


I needed to run an external program i= n a guest machine. Once this must be triggered by the host, I first=A0thoug= ht in qemu-ga.=A0
Is that possible? In QEMU help page and in the = code I couldn't find such capability. =A0
So Im thinking In to implement a new GA QMP command that can run gener= ic programs in the guest. It would be receive/return something like this:

{"execute":"execvp", "argu= ments":{"command":"/bin/ls","cmdargs":&q= uot;-la","timeout":20}}
{"return": {"status": "0", "stdout&= quot;: "aGVsbG8gd29ybGQhCg=3D=3D", "stderr": "&quo= t;}}

Any=A0thoughts/ideas about this?
Kind Regards,
Erlon=A0


--e89a8f83ac2dbd850f04d22bac28--