The monitor
QEMU 11.1.1's human monitor, at the (warm) prompt, and how to open it from a terminal, from JavaScript or over QMP.
The human monitor (HMP) is QEMU's text console for a running machine. WARM's is QEMU 11.1.1's, with the same commands and info subcommands, the same replies word for word, and the same Tab completions.
The commands
QEMU's monitor documentation describes every command. In the monitor itself, help (or ?) lists them, each with a one-line description, help COMMAND describes one, and info alone lists the subcommands.
Opening the monitor
- In a terminal: with
-nographic, press Ctrl+A then c to switch between the guest's console and the monitor.-monitor stdioputs the monitor on the terminal from the start. - From JavaScript:
vm.hmp(line)runs one command and resolves with its output. - Over QMP:
human-monitor-commandwith{"command-line": "info status"}.
WARM 1.0.0 (QEMU 11.1.1) monitor - type 'help' for more information
(warm) info status
VM status: running
(warm) info cpus
* CPU #0: thread_id=34841 model=cortex-a76
(warm) savevm cleanThe monitor's greeting says WARM 1.0.0 (QEMU 11.1.1) monitor and its prompt is (warm), where QEMU's say QEMU and (qemu). Everything else is the same as QEMU's.