mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
Move QEMU monitor to telnet
This commit is contained in:
10
qemu.sh
10
qemu.sh
@@ -23,10 +23,18 @@ if [[ -c /dev/kvm ]]; then
|
|||||||
kvm="-enable-kvm"
|
kvm="-enable-kvm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ninja -C "${build}" && \
|
if ! ninja -C "${build}"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n $TMUX ]]; then
|
||||||
|
tmux split-window "sleep 1; telnet localhost 45454" &
|
||||||
|
fi
|
||||||
|
|
||||||
exec qemu-system-x86_64 \
|
exec qemu-system-x86_64 \
|
||||||
-drive "if=pflash,format=raw,file=${build}/flash.img" \
|
-drive "if=pflash,format=raw,file=${build}/flash.img" \
|
||||||
-drive "format=raw,file=${build}/popcorn.img" \
|
-drive "format=raw,file=${build}/popcorn.img" \
|
||||||
|
-monitor telnet:localhost:45454,server,nowait \
|
||||||
-smp 1 \
|
-smp 1 \
|
||||||
-m 512 \
|
-m 512 \
|
||||||
-d mmu,int,guest_errors \
|
-d mmu,int,guest_errors \
|
||||||
|
|||||||
Reference in New Issue
Block a user