From 7dd27f2a72395e51db76ee344ffba56279d5c6ff Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 20 Jun 2021 22:11:42 +0000 Subject: deploy: 97c6252800e020af05f0e0d7afc037c04753bc83 --- tools/qemu.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools') diff --git a/tools/qemu.html b/tools/qemu.html index 418a9fe..03fd8bc 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -156,11 +156,17 @@

All the examples & notes use qemu-system-x86_64 but in most cases this can be swapped with the system emulator for other architectures.

Keybindings

+

Graphic mode:

Ctrl+Alt+g         release mouse capture from VM
 
 Ctrl+Alt+1         switch to display of VM
 Ctrl+Alt+2         switch to qemu monitor
 
+

No graphic mode:

+
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:

qemu-system-x86_64                              \
@@ -232,6 +238,11 @@ lsblk -f /dev/sda
 
  • -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