Unverified Commit aeea4cc0 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Make monitor port configurable (#864)

parent 0ab9018c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ set -Eeuo pipefail
: "${VMPORT:="off"}"
: "${SERIAL:="mon:stdio"}"
: "${USB:="qemu-xhci,id=xhci,p2=7,p3=7"}"
: "${MONITOR:="telnet:localhost:7100,server,nowait,nodelay"}"
: "${MONITOR:="telnet:localhost:$MON_PORT,server,nowait,nodelay"}"
: "${SMP:="$CPU_CORES,sockets=1,dies=1,cores=$CPU_CORES,threads=1"}"

msg="Configuring QEMU..."
+1 −0
Original line number Diff line number Diff line
@@ -192,6 +192,7 @@ getHostPorts() {
    [ -z "$list" ] && list="$VNC_PORT" || list+=",$VNC_PORT"
  fi

  [ -z "$list" ] && list="$MON_PORT" || list+=",$MON_PORT"
  [ -z "$list" ] && echo "" && return 0

  if [[ "$list" != *","* ]]; then
+1 −0
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@ addPackage() {
}

: "${VNC_PORT:="5900"}"    # VNC port
: "${MON_PORT:="7100"}"    # Monitor port
: "${WEB_PORT:="8006"}"    # Webserver port
: "${WSS_PORT:="5700"}"    # Websockets port