How To Quit The QEMU Monitor When Not Using A GUI? - Super User
How To Quit The QEMU Monitor When Not Using A GUI? - Super User
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn
more
Sign in with Google
qemu
Share Improve this question edited May 22, 2017 at 5:52 asked Jun 10, 2016 at 22:48
Follow Ciro Santilli triple fault
OurBigBook.com 943 1 6 8
11.7k 6 69 64
Ctrl-A x
https://superuser.com/questions/1087859/how-to-quit-the-qemu-monitor-when-not-using-a-gui Page 1 of 4
How to quit the QEMU monitor when not using a GUI? - Super User 15/05/24, 11:57 AM
Alternatively:
quit
shut down the VM from guest normally, e.g. with a powerdown command from a
Linux guest shell if you are able. This of course goes through the normal shutdown
sequence instead of immediately killing the VM, but sometimes it is just the
simplest approach.
It does not work for all machines however:
https://stackoverflow.com/questions/31990487/how-to-cleanly-exit-qemu-after-
executing-bare-metal-program-without-user-interve
Share Improve this answer edited 13 mins ago answered May 22, 2017 at 5:50
Follow Ciro Santilli
OurBigBook.com
11.7k 6 69 64
The example in the other answer is clearer "ctrl+a, then x" – vharron Sep 25, 2019 at 21:17
The telnet trick worked for me, as my qemu was being started on a port. – Codigo Morsa Feb
7, 2023 at 22:40
https://superuser.com/questions/1087859/how-to-quit-the-qemu-monitor-when-not-using-a-gui Page 2 of 4
How to quit the QEMU monitor when not using a GUI? - Super User 15/05/24, 11:57 AM
ctrl+a , then x
15
Share Improve this answer Follow answered Dec 20, 2017 at 9:55
Noich
251 2 4
When using -nographics and -monitor need to include -serial mon:stdio que keep ctrl+a
working. stackoverflow.com/questions/49716931/… – arvati Jul 3, 2020 at 10:41
Press Cntl-Alt-2 and then use the close button on the menu.
Share Improve this answer edited Oct 29, 2019 at 23:46 answered Oct 29, 2019 at 19:23
Follow Ramhound YanivGK
42.9k 35 106 136 191 1 2
2 I found the Ctrl part unnecessary. Alt-2 does the job. – Jet Blue Sep 16, 2020 at 23:03
https://superuser.com/questions/1087859/how-to-quit-the-qemu-monitor-when-not-using-a-gui Page 3 of 4
How to quit the QEMU monitor when not using a GUI? - Super User 15/05/24, 11:57 AM
Share Improve this answer Follow answered Jun 10, 2016 at 23:21
triple fault
943 1 6 8
6 This is a really inferior solution to the most upvoted answer here. I will not downvote the
answer, since it was entered before the better solutions. – EFraim Aug 21, 2018 at 8:05
Not necessarily inferior, it still caters to situations where the CtrlA,X way doesn't work, eg
when qemu gets stuck trying to bring up an OS. It's just an alternate answer. – Mendhak Oct
15, 2023 at 11:21
This is just in addition to other answers, where ctrl-a x works but you've aliased over
it. If you're like me, you're using tmux with ctrl-b replaced with ctrl-a , which is why
2 you can't use ctrl-a x . A simple solution to this is to use tmux's send-keys utility to
send ctrl-a x to qemu.
In a running tmux window, press ctrl-a : to bring up the tmux prompt, then type
send-keys C-a x Enter and qemu will quit.
Share Improve this answer Follow answered Jul 11, 2021 at 4:15
kjp
21 1
https://superuser.com/questions/1087859/how-to-quit-the-qemu-monitor-when-not-using-a-gui Page 4 of 4