diff --git a/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash b/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash index bd71972..543c424 100644 --- a/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash +++ b/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash @@ -39,9 +39,9 @@ fi function cleanup { for vm in "${vms[@]}"; do - log "Destroying bhyve vm $f" + log "Destroying bhyve vm $vm" bhyvectl "--vm=$vm" --destroy - log "Destroyed bhyve vm $f" + log "Destroyed bhyve vm $vm" done } vms=() @@ -144,7 +144,7 @@ function start_vm { # TODO: Look into using nmdm instead of stdio for serial console if [ -n "$mount_cd" ]; then - additional_args+=("-s" "4,ahci-cd,$mount_cd") + 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")