From owner-freebsd-virtualization@FreeBSD.ORG Tue Jan 20 16:37:15 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAEF9970; Tue, 20 Jan 2015 16:37:15 +0000 (UTC) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (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 A4443929; Tue, 20 Jan 2015 16:37:15 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 039B916A405; Tue, 20 Jan 2015 17:37:12 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NaLQ3tsbgtDT; Tue, 20 Jan 2015 17:37:10 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:6455:2a07:d7dc:ef6e] (unknown [IPv6:2001:4cb8:3:1:6455:2a07:d7dc:ef6e]) by smtp.digiware.nl (Postfix) with ESMTP id D680A16A403; Tue, 20 Jan 2015 17:37:10 +0100 (CET) Message-ID: <54BE8434.3070901@digiware.nl> Date: Tue, 20 Jan 2015 17:37:08 +0100 From: Willem Jan Withagen Organization: Digiware Management b.v. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Peter Grehan Subject: How to connect ssh and /dev/nmdm devices Was:( Re: Native Linux guest in Bhyve (no grub2-bhyve) status? ) References: <5448305F.8010307@freebsd.org> <54483712.8050007@freebsd.org> <54A9CAFB.1090902@digiware.nl> <54A9CC90.2020103@freebsd.org> <54AA4E32.1080303@digiware.nl> In-Reply-To: <54AA4E32.1080303@digiware.nl> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Conrad Rad , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 20 Jan 2015 16:37:16 -0000 On 2015-01-05 9:41, Willem Jan Withagen wrote: > On 2015-01-05 0:28, Peter Grehan wrote: >> Hi Willem, >> >>> Would it it be possible in the meantime to enhance grub2-bhyve with the >>> same possibility as bhyve itself has for the console? >>> >>> So I can redirect grub screen access to /dev/nmdm12041, and one can even >>> use this channel to see the grubscreen during rebooting. >>> >>> Or if it is not that hard, give some pointers to write it myself. >> >> Conrad contributed this to grub-bhyve with >> https://github.com/grehan-freebsd/grub2-bhyve/pull/2 >> >> It's available in v0.30 which has been in ports for a while now: >> >> https://github.com/grehan-freebsd/grub2-bhyve/releases/tag/v0.30 > > Right, > > Did miss that, I guess. > I'll upgrade my bhyve-grub. Yup, works really nice. Now in a continuance from this... What is the easiest way to "propagate" the full-duplex tty stream from a SSH-login to a /dev/nmdmXXXXA. This will give easy access to the console screens. one would type: ssh -p XXXX user@management-ip and end up at the console on /dev/nmdmxxxxA Currently I'm using tip for this, but that also requires hacking new VMs into /etc/remote. So a very basic TIP, without the serial/ACU/speed stuff, would really be useful. Preferably all signals are sent thru as well. And if this might not be 100% secure, it would require an ssh-jailed setup. A bit like sftp. hints and or suggestion welcome. --WjW --WjW