From owner-freebsd-virtualization@FreeBSD.ORG Thu Mar 6 18:33:40 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 219BC58B; Thu, 6 Mar 2014 18:33:40 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id D8DC99FB; Thu, 6 Mar 2014 18:33:39 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id EC1581223C; Fri, 7 Mar 2014 04:33:37 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BSI25746 (AUTH peterg@ptree32.com.au); Fri, 7 Mar 2014 04:33:37 +1000 Message-ID: <5318BF7F.4060306@freebsd.org> Date: Thu, 06 Mar 2014 10:33:35 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Roman Bogorodskiy Subject: Re: bhyve: allow specifiying tty by fd References: <20140305130030.GA40560@dev.san.ru> In-Reply-To: <20140305130030.GA40560@dev.san.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Thu, 06 Mar 2014 18:33:40 -0000 Hi Roman, > Currently bhyve(8) allows to specify either stdio or device path as a > TTY device. However, it could be useful to specify a TTY device by file > descriptor, e.g. when bhyve is being executed in an automated way by > other application, so a result of openpty(3) could be passed to it. > > Attached a poc patch for that. It allows to specify fd this way: > > bhyve -s 31,lpc -l com1,fd=19 vm0 Yes, useful idea, and will become more relevant in the capsicum world of passing fd's to a sandboxed bhyve. Thanks: I'll get this submitted. later, Peter.