The command I use on debian: qemu-system-x86_64 -smp cores=8 --enable-kvm -m 2048 -vga cirrus -hda freedos.img -full-screen
There are 3 ways to leave QEMU:
- Shortcut "ctrl+alt+2" will switch screen to QEMU monitor console and typing "quit" will go back to Debian.
- Shortcut "ctrl+alt+f" and "ctrl+alt+m" can show alt bar for exit.
- Typing "shutdown" in freedos will also go back to Debian.
Is there any way to modify the shortcut of QEMU monitor or detect if qemu is being shutdown to shutdown the whole PC?