bhyve and serial port emulation problem
olivier at cochard.me
Tue Apr 29 21:12:43 UTC 2014
I'm using the same nanobsd image on Virtualbox and bhyve (-CURRENT r265101).
The nanobsd image I'm using is configured for serial port as default
[root at nanobsd]~# cat /boot.config
[root at nanobsd]~# grep ttyu0 /etc/ttys
ttyu0 "/usr/libexec/getty std.38400" vt100 on secure
The Virtualbox VM is configured for creating a serial pipe:
VBoxManage modifyvm nanobsd --uart1 0x3F8 4 --uartmode1 server
and I connect to this guest using "socat unix-connect:/tmp/nanobsd.serial
=> And it's works without problem.
The bhyve is configured with a com1 redirecting to a nmdm device: "-l
and I connect to this guest using "cu -l /dev/nmdm1B"
=> But this bhyve console didn't works correctly: I can't use tool like
less/more (even ssh-keygen can't ask for a passphrase).
If I run truss with these tools, It seems they hang for opening /dev/tty.
Some differences between virtualbox and bhyve (don't know if it can help):
[root at vbox_guest]~# kenv | grep console
[root at bhyve_guest]~# kenv | grep console
More information about the freebsd-virtualization