C. L. Martinez wrote:
> Hi all,
> 
> How can I use more than one serial console for several bhyve guests?

`pkg install rtty`

> According to nmdm(4) man page only two nullmodem devices can be
> created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one
> bhyve guest). Then, how can I access to these bhyve guests?

assuming that you can give each guest a name, use them like this:

> root@mm2:/home/vixie # cd /usr/local/rtty
> root@mm2:/usr/local/rtty # ls -l dev
> lrwxr-xr-x  1 root  wheel  11 Dec 25  2015 demo -> /dev/nmdm2A
> lrwxr-xr-x  1 root  wheel  11 Feb  8 04:08 hpfeeds -> /dev/nmdm8A
> lrwxr-xr-x  1 root  wheel  11 Jan 15 02:54 usql -> /dev/nmdm5A
> lrwxr-xr-x  1 root  wheel  11 Jan  1  2016 x -> /dev/nmdm3A
> lrwxr-xr-x  1 root  wheel  11 Jan 15 21:44 yeti-dns -> /dev/nmdm7A

as you can imagine, i'm using the B ports for bhyve consoles.

> I have tried to add vnc channel, but it doesn't works ..:(

it's pretty straightforward. i wrote rtty in 1990 when serial lines
weren't virtual.

> [mm2.redbarn:amd64] console yeti-dns
> connected
> (use (CR)~? for minimal help; also (CR)~q? and (CR)~s?)
> [authorized]
> [vixie@/dev/pts/6 connected]
> 
> FreeBSD/amd64 (yeti-dns.tisf.net) (ttyu0)
> 
> login: 
> 
> FreeBSD/amd64 (yeti-dns.tisf.net) (ttyu0)
> 
> login: 
> [rtty exiting]

i like rtty better than "cu" or "tip" because multiple people can
connect at the same time, and because everything is logged always:

> root@mm2:/usr/local/rtty # ls -l log
> -rw-r-----  1 root  wheel   4253207 Feb 17 05:44 demo
> -rw-r-----  1 root  wheel    218105 Feb 12 21:39 hpfeeds
> -rw-r-----  1 root  wheel    184779 Jan 15 22:57 usql
> -rw-r-----  1 root  wheel   1374759 Feb  3 04:08 x
> -rw-r-----  1 root  wheel    257801 Feb 17 09:03 yeti-dns

huh. i guess i need to rotate those.

-- 
P Vixie

_______________________________________________
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to