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)



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.:


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.


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.