Skip to content

Instantly share code, notes, and snippets.

@wpyoga
Last active June 15, 2023 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpyoga/5d4b625ad4c4aaf645657a7093d7bb4f to your computer and use it in GitHub Desktop.
Save wpyoga/5d4b625ad4c4aaf645657a7093d7bb4f to your computer and use it in GitHub Desktop.
run qemu monitor on socket
https://unix.stackexchange.com/questions/426652/connect-to-running-qemu-instance-with-qemu-monitor
$ qemu-system-i386 [..other params..] -monitor unix:qemu-monitor.socket,server,nowait
$ qemu-system-i386 -monitor telnet:127.0.0.1:55555,server,nowait;
$ socat -,echo=0,icanon=0 unix-connect:qemu-monitor-socket
$ telnet 127.0.0.1 55555
$ nc -N 127.0.0.1 55555
quit socat with ctrl-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment