SamyPesse / How-to-Make-a-Computer-Operating-System

How to Make a Computer Operating System in C++
https://samypesse.gitbook.io/how-to-create-an-operating-system
Apache License 2.0
21.35k stars 3.42k forks source link

Chapter 2 spelling and how to exit qemu? #29

Open ghost opened 10 years ago

ghost commented 10 years ago

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?

Xumeiquer commented 10 years ago

This is fixed in #30

ddetoni commented 10 years ago

I got this screen: os

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

liuluheng commented 10 years ago

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 works, it refresh the scree... doesn't work..what's going on?

kannan83 commented 10 years ago

hi, i'm having the same issue to quit qemu emulator by using 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

ChiakiLee commented 10 years ago

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

ghost commented 10 years ago

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.

erinzm commented 10 years ago

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 ;)

overvenus commented 9 years ago

@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

marianofino commented 8 years ago

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

robot527 commented 8 years ago

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

furkanmustafa commented 8 years ago

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

yangminz commented 7 years ago

CTRL+ALT x works

bx1n commented 6 years ago

Press Ctrl+A, leave it, afterwards press X

attarzad commented 5 years ago

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

JerryJi0414 commented 3 years ago

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