Reputation: 443
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.
Upvotes: 41
Views: 65824
Reputation: 331
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.
Upvotes: 33
Reputation: 331
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)
Upvotes: 33
Reputation: 706
None of the above worked for me. I have Ubuntu 16.04, I don't think this matters.
Ctrl + Alt + 2
worked for me.
Upvotes: 3
Reputation: 141
alt + 2
Just drop the 'ctrl' and all of the key sequences work as expected.
Upvotes: 14
Reputation: 8751
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
Upvotes: 15