Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2014 23:12:21 +0200
From:      =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
To:        freebsd-virtualization@freebsd.org
Subject:   bhyve and serial port emulation problem
Message-ID:  <CA%2Bq%2BTcrssCnQ_6%2BP6vn69nH103WuBB7E7Wv5dCSKcFgVPQWTbw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

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
console:

[root@nanobsd]~# cat /boot.config
-S38400 -h
[root@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
/tmp/nanobsd.serial
and I connect to this guest using "socat unix-connect:/tmp/nanobsd.serial
stdio,raw,echo=0,icanon=0"
=> And it's works without problem.

The bhyve is configured with a com1 redirecting to a nmdm device: "-l
com1,/dev/nmdm1"
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@vbox_guest]~# kenv | grep console
comconsole_pcidev=""
comconsole_port="1016"
comconsole_speed="9600"
console="comconsole"

[root@bhyve_guest]~# kenv | grep console
console="userboot"

Regards,

Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bq%2BTcrssCnQ_6%2BP6vn69nH103WuBB7E7Wv5dCSKcFgVPQWTbw>