Handle serial console better

This commit is contained in:
Anthony Rose 2022-09-06 22:43:47 +01:00
parent 7bb25aab40
commit 0d51a321e8

View file

@ -45,8 +45,8 @@ ram=1G
# from this host (or via SSH tunnels). # from this host (or via SSH tunnels).
vnchost="127.0.0.1" vnchost="127.0.0.1"
# Change to /dev/nmdm0A for the first null-modem, or stdio. # Uncomment to use stdio for the serial console.
comoutput=/dev/nmdm${vmnumber}A #comoutput=stdio
# Comment the next line out for no CD-ROM. # Comment the next line out for no CD-ROM.
#cdrom="-s 3,ahci-cd,$vmpath/cdrom.iso" #cdrom="-s 3,ahci-cd,$vmpath/cdrom.iso"
@ -78,7 +78,7 @@ fi
-s 29,fbuf,tcp=$vnc:590$vmnumber,w=800,h=600 \ -s 29,fbuf,tcp=$vnc:590$vmnumber,w=800,h=600 \
-s 30,xhci,tablet \ -s 30,xhci,tablet \
-s 31,lpc \ -s 31,lpc \
-l com1,$comoutput \ -l com1,${comoutput:-/dev/nmdm${vmnumber}A} \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
$vmname $vmname
/usr/sbin/bhyvectl --destroy --vm=$vmname /usr/sbin/bhyvectl --destroy --vm=$vmname