How to switch to the QEMU control panel with -nographics?

3

1

It seems that the terminal does not recognise CTRL+ALT+2 when typed, so I don't know how to quit the QEMU emulation, or switch to the QEMU control panel.

I am running Mac OSX Lion, and I type

$ qemu-system-arm -M verdex -pflash flash.img -nographic -sd sdcard.img

to start QEMU emulation of an ARM system in the Terminal. I learned from this site that typing CTRL+ALT+2 should work, but the only thing that happens to me, is that a "2" is printed on the command line of the virtual operating system. Any ideas on what could be wrong? Is this a Mac specific issue? (The same problem occurs in both terminal.app and iTerm2)

tor

Posted 2012-10-16T03:33:49.550

Reputation: 301

http://stackoverflow.com/questions/14165158/how-to-switch-to-qemu-monitor-console-when-running-with-curses – Ciro Santilli 新疆改造中心法轮功六四事件 – 2017-05-22T05:57:29.780

The whole Qemu monitor Ctrl-Alt-2 thing only works in some environments. But using the Telnet-based monitor works on more platforms. Count on that and you should be able to make it serve you well. – TOOGAM – 2018-04-11T12:50:23.950

Answers

2

-monitor

This is another option:

qemu-system-x86-64 -monitor telnet::45454,server,nowait -serial mon:stdio

and then on another shell:

telnet localhost 45454

and now you can send monitor commands from inside the telnet, e.g.:

quit

The advantage of this method is that it allows you to automate further with:

echo quit | telnet localhost 45454

-serial mon:stdio required to keep Ctrl+C working: https://stackoverflow.com/questions/49716931/how-to-run-qemu-with-nographic-and-monitor-but-still-be-able-to-send-ctrlc-to/49751144#49751144

Full QEMU test command:

qemu-system-x86_64 -append 'root=/dev/vda console=ttyS0' -kernel 'bzImage' -drive file='rootfs.ext2.qcow2,if=virtio,format=qcow2' -nographic -serial mon:stdio

on Ubuntu 17.10, QEMU 2.10.1.

Ciro Santilli 新疆改造中心法轮功六四事件

Posted 2012-10-16T03:33:49.550

Reputation: 5 621

1

The combination to enter the control panel is ctrl-a * release keys * then; c

Typically written: ctrl-a c

Similarly, to quit: ctrl-a x

tor

Posted 2012-10-16T03:33:49.550

Reputation: 301