From e40bb4ba54f2c4bd5e8ca56bb22932773a57ec9d Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 1 Jun 2021 22:04:37 +0200 Subject: qemu: added nographic keybindings + debugging --- src/tools/qemu.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') 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::` open gdbstub on tcp `` (`-s` shorthand for `-gdb tcp::1234`). +- `-S` freeze CPU at startup. + ## References - [QEMU USB][doc-qemu-usb] - [QEMU IMG][doc-qemu-img] -- cgit v1.2.3