diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-05-26 11:19:22 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-05-26 11:19:22 +0200 |
commit | 0793675e892ccbf2e8b7f8b1cb58e59bc7cc391e (patch) | |
tree | 00c5a4c856f1fc667689a1bc6fee320d89d1471c /development | |
parent | 8289eb49c602b7fe005aed902fbc41feaa3a9945 (diff) |
More qemu debugging
Diffstat (limited to 'development')
-rw-r--r-- | development/qemu-debugging.mdwn | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/development/qemu-debugging.mdwn b/development/qemu-debugging.mdwn index 44a8a7c..ed30a17 100644 --- a/development/qemu-debugging.mdwn +++ b/development/qemu-debugging.mdwn @@ -14,14 +14,20 @@ output goes to /var/log/libvirt/qemu/<vm>.log by default <target dir='ltstest'/> </filesystem> -*mapped* is important. It uses extended attributes so it needs user_xattr on the host filesystem. +*mapped* is important. It uses extended attributes so the filesystem that +needs to be mounted with *user_xattr* on the host filesystem and the folder +needs to be writeable by qemu: -Guests fstab: + mount -o remount,user_xattr /cache/ltstest + chown libvirt-qemu /cache/ltstest + +The Guests fstab then uses: ltstest /ltstest 9p trans=virtio,version=9p2000.L,rw 0 0 -Do +After mounting you can write from the guest to the hosts fileystem: + mount /ltstest cd /ltstest && touch a results on the host as extended attributes @@ -61,3 +67,10 @@ via QMP monitor: * List all devices: qemu-system-x86_64 -device ? + +* Enabling the monitor on raw qemu + + $ qemu-system-i386 -qmp tcp:localhost:4444,server,nowait + $ telnet localhost 4444 + { "execute": "qmp_capabilities" } + {"execute": "commands"} |