intermezzOS / kernel

A hobby operating system, in Rust
http://intermezzos.github.io/
Apache License 2.0
1.39k stars 91 forks source link

Closing qemu Cleanly #12

Closed rylev closed 7 years ago

rylev commented 8 years ago

I can't seem to find a good way to cleanly shut down qemu. The docs I found here (http://wiki.qemu.org/download/qemu-doc.html) show a way to "Exit emulator", but this doesn't seem to work for me at least inside of the Vagrant VM. For now, I'm just using pgrep qemu | xargs kill -15

steveklabnik commented 8 years ago

It didn't work for me in not-a-vm either. Hmm.

sarahhodne commented 8 years ago

Ctrl-C in the terminal that's running qemu does the trick for me. Ctrl-A, X only works in “nographics" mode, which we're not using. You can also do Ctrl-Alt-2 in the qemu window to bring up the monitor and enter quit.

steveklabnik commented 8 years ago

Ah ha!

rylev commented 8 years ago

Hmmm neither works for me running on Mac using the VM specified in the vagrant file.

lulezi commented 8 years ago

I ran into this issue as well. @rylev, thanks for pgrep qemu | xargs kill -15. Also, I don't know if this is related but when I try to start qemu with qemu-system-x86_64 -cdrom os.iso it exits saying Could not initialize SDL(No available video device) - exiting. This can be avoided using the -curses flag.

BrendanBuono commented 8 years ago

As a note, Ctrl-Alt didn't work for me, I had to use Esc instead

avocadofan2 commented 8 years ago

Esc+2 ( or alt+2 ) works for me. This switches consoles where you can use the quit command

steveklabnik commented 7 years ago

So, I'm gonna say that we should mention that alt-2 + quit works, and that this is a book issue. Moving it over to that repo!