From 0a4ee7b7f6fd57e821833d724e78bed85a577a82 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 14 Jul 2024 12:18:37 -0400 Subject: [PATCH] Support different vnc resolutions in bhyve. --- ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash b/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash index c1bb261..693b295 100644 --- a/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash +++ b/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash @@ -30,6 +30,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" : ${BRIDGE_NAME:="bridge_$INTERFACE_NAME"} # or bridge_raw for RAW networks : ${VNC_ENABLE:="NO"} : ${VNC_LISTEN:="127.0.0.1:5900"} +: ${VNC_WIDTH:="1920"} +: ${VNC_HEIGHT:="1080"} if [ "$VERBOSE" = "YES" ]; then set -x @@ -141,7 +143,7 @@ function start_vm { additional_args+=("-s" "5,ahci-cd,$mount_cd") fi if [ "$VNC_ENABLE" = "YES" ]; then - additional_args+=("-s" "29,fbuf,tcp=$VNC_LISTEN,w=1920,h=1080") + additional_args+=("-s" "29,fbuf,tcp=$VNC_LISTEN,w=$VNC_WIDTH,h=$VNC_HEIGHT") fi vms+=("$name") while true; do