-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqemu_monitor_command
More file actions
27 lines (20 loc) · 995 Bytes
/
qemu_monitor_command
File metadata and controls
27 lines (20 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
get cpu's state
------------------------------------------------------
virsh qemu-monitor-command VM_93d73cfa --hmp info cpus
get VM settings
------------------------------------------------------
virsh qemu-monitor-command VM_93d73cfa --hmp info qtree
start gdb server and connect to it
------------------------------------------------------
virsh qemu-monitor-command <vm_name> --hmp gdbserver tcp::<port_number>
then to connect to gdb server do:
gdb
(gdb) set architecture i386:x86-64 [this is needed for proper answer parsing by gdb]
(gdb) target remote 0.0.0.0.:<port_number>
list to serial output all supported sysRQs
------------------------------------------------------
virsh send-key debian-7-x86_64_thiJ6 KEY_LEFTALT KEY_SYSRQ KEY_H
read phisical memory: /128ih /(number)(format)(size) http://software.viamep.com/qemu-doc.html
------------------------------------------------------
read 128 instructions 16 bit
virsh qemu-monitor-command VM_3440fe0f --hmp xp /128ih 0x9a000