run_qemu.sh: add another example for how to connect to qemu via serial

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-10-16 15:31:05 +02:00
parent f0f211f383
commit bcb3fcdaf1
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -30,6 +30,9 @@ trap cleanup INT TERM EXIT
qemu-img create -f qcow2 -b "$(realpath $cachedir)/debian-$DEFAULT_DIST.qcow" -F qcow2 "$tmpdir/debian-$DEFAULT_DIST-overlay.qcow" qemu-img create -f qcow2 -b "$(realpath $cachedir)/debian-$DEFAULT_DIST.qcow" -F qcow2 "$tmpdir/debian-$DEFAULT_DIST-overlay.qcow"
# to connect to serial use: # to connect to serial use:
# minicom -D 'unix#/tmp/ttyS0' # minicom -D 'unix#/tmp/ttyS0'
#
# or this (quit with ctrl+q):
# socat stdin,raw,echo=0,escape=0x11 unix-connect:/tmp/ttyS0
ret=0 ret=0
timeout --foreground 20m qemu-system-x86_64 \ timeout --foreground 20m qemu-system-x86_64 \
-cpu host \ -cpu host \