[prev in list] [next in list] [prev in thread] [next in thread]
List: qemu-devel
Subject: [Qemu-devel] Using QEMU guest agent to run programs from guest path
From: Erlon Cruz <sombrafam () gmail ! com>
Date: 2012-12-31 20:14:59
Message-ID: CAF+CadsaPmLew-LQ0AjdFAufmWVjzKCFi5f7cF7EdnxnT4pK8w () mail ! gmail ! com
[Download RAW message or body]
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
[Attachment #3 (text/html)]
Hi,<div><br></div><div><br></div><div>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. \
</div><div>Is that possible? In QEMU help page and in the code I couldn't find \
such capability. </div>
<div>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:</div><div><br></div><div>{"execute":"execvp", \
"arguments":{"command":"/bin/ls","cmdargs":"-la","timeout":20}}</div>
<div>{"return": {"status": "0", "stdout": \
"aGVsbG8gd29ybGQhCg==", "stderr": \
""}}</div><div><br></div><div>Any thoughts/ideas about this?</div><div><br>
</div><div>Kind Regards,</div><div>Erlon </div><div><br></div><div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic