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 capabilities, a simple
> way e.g. via a shell script would be nice. QEMU is running daemonized, so
> interacting with the qemu console is not possible.
> Are there any usable entries in /proc, /dev or /sys that could be used?
> 

Hello Erik,

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" } }


> Thanks.
> 
> Best regards,
> 
> Erik
> 

-- 
Paulo Ricardo Paz Vital <paulo.vi...@profitbricks.com>
ProfitBricks GmbH


Reply via email to