[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Using QEMU guest agent to run programs from guest path
From: |
mdroth |
Subject: |
Re: [Qemu-devel] Using QEMU guest agent to run programs from guest path |
Date: |
Wed, 2 Jan 2013 17:04:05 -0600 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Dec 31, 2012 at 06:14:59PM -0200, Erlon Cruz wrote:
> 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?
I sent an RFC for this a while back:
http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg00722.html
At the time the interface seemed a bit tedious, but AFAIK it's the only
kind of approach that'll work for longer-running commands with lots of
output, so I might just clean it up and re-spin the series.
>
> Kind Regards,
> Erlon
- Re: [Qemu-devel] Using QEMU guest agent to run programs from guest path,
mdroth <=