'How to switch to qemu monitor console when running with "-curses"
When passing "-curses" option to qemu, qemu displays the emulation window as default. So, how can I switch to the monitor console from the emulation window? If using graphical interface, switching between emulation window and monitor console can be achieved by "ctrl+alt+(1 or 2)". I am just not sure how to do this in the non-graphical case.
Solution 1:[1]
Just use Esc instead of Ctrl-Alt. So to switch to the monitor console use Esc+2. To switch back to the terminal output use Esc+1. You can similarly switch ptys with Esc+F2 etc.
Solution 2:[2]
From the section keys in the character backend multiplexer in the QEMU docs:
During emulation, if you are using a character backend multiplexer (which is the default if you are using -nographic) then several commands are available via an escape sequence. These key sequences all start with an escape character, which is Ctrl-a by default, but can be changed with -echr. The list below assumes you’re using the default.
…
Ctrl-a c
Rotate between the frontends connected to the multiplexer (usually this switches between the monitor and the console)
Solution 3:[3]
Doesn't appear to be possible. However, you can access the monitor console via Telnet.
Start QEMU:
qemu-system-i386 -curses -monitor telnet:127.0.0.1:1234,server,nowait
Then, to access the monitor console, type this in another terminal:
telnet 127.0.0.1 1234
Solution 4:[4]
alt + 2
Just drop the 'ctrl' and all of the key sequences work as expected.
Solution 5:[5]
None of the above worked for me. I have Ubuntu 16.04, I don't think this matters.
Ctrl + Alt + 2 worked for me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | fuzzyTew |
| Solution 2 | Andrew Marshall |
| Solution 3 | Søren Løvborg |
| Solution 4 | Undo |
| Solution 5 | rajiv_ |
