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