pusam
pusam

Reputation: 443

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.

Upvotes: 41

Views: 65824

Answers (5)

minipli
minipli

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

nikitis
nikitis

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

natcomp256
natcomp256

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

Anthony Liguori
Anthony Liguori

Reputation: 141

alt + 2

Just drop the 'ctrl' and all of the key sequences work as expected.

Upvotes: 14

Søren Løvborg
Søren Løvborg

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

Related Questions