From owner-freebsd-virtualization@freebsd.org Fri Feb 17 09:08:54 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 583CECE1608 for ; Fri, 17 Feb 2017 09:08:54 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [IPv6:2001:559:8000:cd::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49BCD1500 for ; Fri, 17 Feb 2017 09:08:54 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from [IPv6:2001:559:8000:c9:5810:ddfd:6b97:1a32] (unknown [IPv6:2001:559:8000:c9:5810:ddfd:6b97:1a32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id 21ABE61F8D; Fri, 17 Feb 2017 09:08:53 +0000 (UTC) Message-ID: <58A6BDA4.8070403@redbarn.org> Date: Fri, 17 Feb 2017 01:08:52 -0800 From: Paul Vixie User-Agent: Postbox 5.0.10 (Windows/20170123) MIME-Version: 1.0 To: "C. L. Martinez" CC: freebsd-virtualization@freebsd.org Subject: Re: Providing serial consoles to multiple bhyve guests References: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> In-Reply-To: <20170217085038.55yztxw5a233byzu@scotland.uxdom.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2017 09:08:54 -0000 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