Re: [Qemu-devel] Getting VM state from outside QEMU?

2015-04-09 Thread Paulo Ricardo Paz Vital
Sorry guys only checked the emails this morning :-D On Wed, 2015-04-08 at 10:16 -0600, Eric Blake wrote: > On 04/08/2015 10:10 AM, Erik Rull wrote: > >> > >> My suggestion is to create a script that sends the QMP command > >> "query-status" an then parse the result. The syntax and output is: > >>

Re: [Qemu-devel] Getting VM state from outside QEMU?

2015-04-08 Thread Eric Blake
On 04/08/2015 10:21 AM, Erik Rull wrote: >>> 172.17.48.45 ~ # telnet 127.0.0.1 >>> {"QMP": {"version": {"qemu": {"micro": 0, "minor": 1, "major": 2}, >>> "package": >>> ""}, "capabilities": []}} >> >> You HAVE to use {"execute":"qmp_capabilities"} (possibly with an >> "id":...) as your first

Re: [Qemu-devel] Getting VM state from outside QEMU?

2015-04-08 Thread Erik Rull
Hi Eric, > On April 8, 2015 at 6:16 PM Eric Blake wrote: > > > On 04/08/2015 10:10 AM, Erik Rull wrote: > >> > >> My suggestion is to create a script that sends the QMP command > >> "query-status" an then parse the result. The syntax and output is: > >> > >> -> { "execute": "query-status" } > >

Re: [Qemu-devel] Getting VM state from outside QEMU?

2015-04-08 Thread Eric Blake
On 04/08/2015 10:10 AM, Erik Rull wrote: >> >> My suggestion is to create a script that sends the QMP command >> "query-status" an then parse the result. The syntax and output is: >> >> -> { "execute": "query-status" } >> <- { "return": { "running": true, "singlestep": false, "status": >> "running"

Re: [Qemu-devel] Getting VM state from outside QEMU?

2015-04-08 Thread Erik Rull
Hello Paulo, > On April 7, 2015 at 3:42 PM Paulo Ricardo Paz Vital > wrote: > > > On Tue, 2015-04-07 at 15:31 +0200, Erik Rull wrote: > > Hi all, > > > > I need a pretty simple way to get the current state of the VM running in > > QEMU - > > I only need the VM state (e.g. running, paused,...).

Re: [Qemu-devel] Getting VM state from outside QEMU?

2015-04-07 Thread John Snow
On 04/07/2015 09:31 AM, Erik Rull wrote: Hi all, I need a pretty simple way to get the current state of the VM running in QEMU - I only need the VM state (e.g. running, paused,...). Since my environment does not have any perl, python or other high level scripting capabilities, a simple way e.g

Re: [Qemu-devel] Getting VM state from outside QEMU?

2015-04-07 Thread Paulo Ricardo Paz Vital
On Tue, 2015-04-07 at 15:31 +0200, Erik Rull wrote: > Hi all, > > I need a pretty simple way to get the current state of the VM running in QEMU > - > I only need the VM state (e.g. running, paused,...). Since my environment does > not have any perl, python or other high level scripting capabiliti

[Qemu-devel] Getting VM state from outside QEMU?

2015-04-07 Thread Erik Rull
Hi all, I need a pretty simple way to get the current state of the VM running in QEMU - I only need the VM state (e.g. running, paused,...). Since my environment does not have any perl, python or other high level scripting capabilities, a simple way e.g. via a shell script would be nice. QEMU is r