| | 1 | = QEMU Monitor on running KVM guests = |
| | 2 | |
| | 3 | Each KVM guests have a [https://secure.wikimedia.org/wikibooks/en/wiki/QEMU/Monitor qemu monitor], which allows you to interact with the running guests via the software the powers the guest. |
| | 4 | |
| | 5 | To start the qemu monitor, login as the guest user account. For example, to access julia.mayfirst.org, login as julia to julia's host (pietri.mayfirst.org): |
| | 6 | |
| | 7 | {{{ |
| | 8 | ssh julia@pietri.mayfirst.org |
| | 9 | }}} |
| | 10 | |
| | 11 | Then run the following command (chaning julia to the name of the guest in question): |
| | 12 | |
| | 13 | {{{ |
| | 14 | julia@pietri:~$ socat vms/julia/monitor.socket STDIO |
| | 15 | }}} |
| | 16 | |
| | 17 | Here's an example session (see ticket #4254 for context): |
| | 18 | |
| | 19 | {{{ |
| | 20 | julia@pietri:~$ socat vms/julia/monitor.socket STDIO |
| | 21 | QEMU 0.12.5 monitor - type 'help' for more information |
| | 22 | (qemu) info balloon |
| | 23 | info balloon |
| | 24 | balloon: actual=3072 |
| | 25 | (qemu) balloon 2500 |
| | 26 | balloon 2500 |
| | 27 | (qemu) ^Cjulia@pietri:~$ |
| | 28 | }}} |
| | 29 | |
| | 30 | Note the use of ctrl-C to detach from the monitor -- if you were to do exit or quit instead, you would be effectively asking the kvm process itself to die. You don't want that! |
| | 31 | |
| | 32 | |