How-to-Make-a-Computer-Operating-System icon indicating copy to clipboard operation
How-to-Make-a-Computer-Operating-System copied to clipboard

Chapter 2 spelling and how to exit qemu?

Open ghost opened this issue 11 years ago • 15 comments

Chapter 2 says You can exit the emulator using: <Ctrl-a x>. but the thing inside <> is not rendered because it is not escaped and looks like HTML tag to the markdown renderer so you need to view the raw text to see it otherwise it shows as You can exit the emulator using: ..

Also, what exactly do I need to press to exit qemu? I run the make run command via PuTTY in Windows and it loads fine but I am not able to stop it. I tried pressing Ctrl+A and then X or Ctrl+X and also Ctrl+A+X but it didn't work. What is this combo supposed to mean?

ghost avatar Dec 06 '13 13:12 ghost

This is fixed in #30

Xumeiquer avatar Dec 06 '13 14:12 Xumeiquer

I got this screen: os

Now I can't leave. It's the same problem. I tried the above solution.

ddetoni avatar Dec 06 '13 20:12 ddetoni

I got this: Uploading 2013-12-08 22:37:53的屏幕截图.png . . .

Now I can't leave. It's the same problem. I tried the above solution. but the <Ctal-Alt-1> works, it refresh the scree... <Ctrl-a x> doesn't work..what's going on?

liuluheng avatar Dec 08 '13 14:12 liuluheng

hi, i'm having the same issue to quit qemu emulator by using <Ctrl-a x> combination; it does not work. though, using <ctrl+alt+2> to open qemu monitor and typing 'exit' works to exit qemu.

googling can give you a lot of references but here is the link that i looked at. http://comments.gmane.org/gmane.linux.embedded.yocto.general/3410

kannan83 avatar Dec 25 '13 20:12 kannan83

hi, I also have the same issue to quit qemu, but both <Ctrl-a x> and <Ctrl+Alt+2> cannot work. Does anyone know how to solve this problem?

ChiakiLee avatar May 19 '14 02:05 ChiakiLee

It can't quit because you're issuing the key sequence in the VM. Open a new tab and issue:

sudo kill $(pidof qemu)

That should do the trick.

ghost avatar May 19 '14 02:05 ghost

Or sudo killall qemu. If you're running under Vagrant, you'll have to do another vagrant ssh in a different shell to quit it, obviously ;)

erinzm avatar Jun 28 '14 18:06 erinzm

@ChiakiLee My customized qemu has the same problem, and here is my solution qemu [some args] -monitor telnet:127.0.0.1:1234,server,nowait, then telnet 127.0.0.1 1234. It works prefectly! see more:http://stackoverflow.com/a/15768100/3920448

overvenus avatar Jun 06 '15 13:06 overvenus

Presing Alt + 2 and then typing quit worked for me. Source. http://serverfault.com/a/730383

marianofino avatar Mar 13 '16 13:03 marianofino

My host is Ubuntu 14.04, VirtualBox version is 4.3.36_Ubuntu. For leave: Press Esc+2, then input quit and press Enter.

robot527 avatar May 02 '16 13:05 robot527

Just for reference: in my case adding -serial mon:stdio made CTRL+a x combination work.

furkanmustafa avatar Aug 11 '16 15:08 furkanmustafa

CTRL+ALT x works

yangminz avatar Oct 28 '16 15:10 yangminz

Press Ctrl+A, leave it, afterwards press X

bx1n avatar Jan 07 '18 11:01 bx1n

^^^THIS If you're SSH'd into Virtual box and running Qemu via terminal ... CRTL + A....dont touch...then X.

attarzad avatar Sep 30 '19 04:09 attarzad

Press Ctrl + a, LEAVE IT!!!!! and then press X, many thx to @abhinand4858 for the answer!

JerryJi0414 avatar Jul 13 '21 02:07 JerryJi0414