Fix UART console on FreeBSD 12.1 and CURRENT.

bhyve was doing UART console emulation on fd 0 for both reads and
writes.  Commits r346550 and r352720 changed it to use fd 0 for input
and fd 1 for output on console.

Fix vm-bhyve to not redirect fd 1.

Fixes #332.
This commit is contained in:
John Hood
2019-11-25 16:28:25 -05:00
parent 555af6a97e
commit 07536b0b73

View File

@@ -272,7 +272,7 @@ vm::run(){
${_devices} \
${_iso_dev} \
${_comstring} \
${_name} >>"${_logpath}" 2>&1
${_name} 2> "${_logpath}"
# get bhyve exit code
_exit=$?