Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2014 10:33:11 -0700
From:      Neel Natu <neelnatu@gmail.com>
To:        =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= <olivier@cochard.me>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: bhyve and serial port emulation problem
Message-ID:  <CAFgRE9FG9WNA=nguEOK_7N7dOXSQG2qGuCbDsVj4UD6_Vun0jA@mail.gmail.com>
In-Reply-To: <CA%2Bq%2BTcrssCnQ_6%2BP6vn69nH103WuBB7E7Wv5dCSKcFgVPQWTbw@mail.gmail.com>
References:  <CA%2Bq%2BTcrssCnQ_6%2BP6vn69nH103WuBB7E7Wv5dCSKcFgVPQWTbw@mail.gmail.com>

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

On Tue, Apr 29, 2014 at 2:12 PM, Olivier Cochard-Labb=C3=A9
<olivier@cochard.me> wrote:
> Hi,
>
> I'm using the same nanobsd image on Virtualbox and bhyve (-CURRENT r26510=
1).
>
> 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=3D0,icanon=3D0"
> =3D> 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"
>
> =3D> 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=3D""
> comconsole_port=3D"1016"
> comconsole_speed=3D"9600"
> console=3D"comconsole"
>
> [root@bhyve_guest]~# kenv | grep console
> console=3D"userboot"
>

Can you share the command line options you pass the bhyve(8)?

best
Neel

> Regards,
>
> Olivier
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free=
bsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9FG9WNA=nguEOK_7N7dOXSQG2qGuCbDsVj4UD6_Vun0jA>