Fix a variable name in the bhyve netgraph script.

This commit is contained in:
Tom Alexander 2023-08-08 14:45:44 -04:00
parent 8a3855fddd
commit 8bad10eace
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -39,9 +39,9 @@ fi
function cleanup { function cleanup {
for vm in "${vms[@]}"; do for vm in "${vms[@]}"; do
log "Destroying bhyve vm $f" log "Destroying bhyve vm $vm"
bhyvectl "--vm=$vm" --destroy bhyvectl "--vm=$vm" --destroy
log "Destroyed bhyve vm $f" log "Destroyed bhyve vm $vm"
done done
} }
vms=() vms=()
@ -144,7 +144,7 @@ function start_vm {
# TODO: Look into using nmdm instead of stdio for serial console # TODO: Look into using nmdm instead of stdio for serial console
if [ -n "$mount_cd" ]; then if [ -n "$mount_cd" ]; then
additional_args+=("-s" "4,ahci-cd,$mount_cd") additional_args+=("-s" "5,ahci-cd,$mount_cd")
fi fi
if [ "$VNC_ENABLE" = "YES" ]; then 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=1920,h=1080")