diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-06-01 22:04:37 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-06-01 22:04:37 +0200 |
commit | e40bb4ba54f2c4bd5e8ca56bb22932773a57ec9d (patch) | |
tree | a2e79acd9f9ec521f0c07ddeb177089651933658 | |
parent | 78b0d71f26c2660ca4a55926ce1420ca3902affa (diff) | |
download | notes-e40bb4ba54f2c4bd5e8ca56bb22932773a57ec9d.tar.gz notes-e40bb4ba54f2c4bd5e8ca56bb22932773a57ec9d.zip |
qemu: added nographic keybindings + debugging
-rw-r--r-- | src/tools/qemu.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/qemu.md b/src/tools/qemu.md index 84eccae..8a48bdc 100644 --- a/src/tools/qemu.md +++ b/src/tools/qemu.md @@ -5,6 +5,7 @@ this can be swapped with the system emulator for other architectures. ## Keybindings +Graphic mode: ```markdown Ctrl+Alt+g release mouse capture from VM @@ -12,6 +13,13 @@ Ctrl+Alt+1 switch to display of VM Ctrl+Alt+2 switch to qemu monitor ``` +No graphic mode: +```markdown +Ctrl+a h print help +Ctrl+a x exit emulator +Ctrl+a c switch between monitor and console +``` + ## VM config snippet Following command-line gives a good starting point to assemble a VM: @@ -86,6 +94,11 @@ lsblk -f /dev/sda #### USB Device - `-device usb-host,bus=xhci.0,vendorid=0x05e1,productid=0x0408` pass-through USB device from host identified by vendorid & productid and attach to usb bus `xhci.0` (defined with controller `id`) +## Debugging + +- `-gdb tcp::<port>` open gdbstub on tcp `<port>` (`-s` shorthand for `-gdb tcp::1234`). +- `-S` freeze CPU at startup. + ## References - [QEMU USB][doc-qemu-usb] - [QEMU IMG][doc-qemu-img] |