Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch to qemu monitor console when running with "-curses"

Tags:

qemu

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.

like image 229
pusam Avatar asked Jan 04 '13 21:01

pusam


People also ask

How do I get to QEMU console?

You can access the monitor console from QEMU window either by a keyboard shortcut—press Ctrl–Alt–2 (to return to QEMU, press Ctrl–Alt–1)—or alternatively by clicking View in the QEMU GUI window, then compatmonitor0. The most convenient way is to show the QEMU window tabs with View › Show Tabs.

How do you exit QEMU curses?

If you are running in graphics mode, then from the ctrl-alt-2 qemu window, type "quit" after "Power down" to exit the qemu process.

How do I exit QEMU from command line?

make qemu-nox. Like make qemu, but run with only the serial console. To exit, press Ctrl-a x.

What is QEMU monitor?

The QEMU monitor is used to give complex commands to the QEMU emulator. You can use it to: Remove or insert removable media images (such as CD-ROM or floppies). Freeze/unfreeze the Virtual Machine (VM) and save or restore its state from a disk file.


2 Answers

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.

like image 175
minipli Avatar answered Nov 09 '22 04:11

minipli


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)

like image 43
nikitis Avatar answered Nov 09 '22 05:11

nikitis