From owner-freebsd-virtualization@FreeBSD.ORG Fri Oct 4 05:38:59 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 62E7B32A; Fri, 4 Oct 2013 05:38:59 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2474425CE; Fri, 4 Oct 2013 05:38:58 +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 C9FB212192; Fri, 4 Oct 2013 15:38:56 +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 BPA25812 (AUTH peterg@ptree32.com.au); Fri, 4 Oct 2013 15:38:55 +1000 Message-ID: <524E546D.9000008@freebsd.org> Date: Thu, 03 Oct 2013 22:38:53 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Craig Rodrigues Subject: Re: Problems with missing ttyv devices in BHyve? References: <522B5010.1080105@freebsd.org> In-Reply-To: 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.14 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, 04 Oct 2013 05:38:59 -0000 Hi Craig, > A few questions for you. > > (1) I want to get the same FreeNAS image working inside Bhyve and on > real hardware. > In the source code for /sbin/init, when it parses /etc/ttys, > if the entry does not exist, it prints out an error message about > not being able to find > the tty entry to open it. > Do you know if there is a way to specify an entry for /dev/ttyu2, > only if it > exists, and not print out an error message otherwise? Not without modifying init :( This seems a very old Unix limitation. > (2) Is it possible to connect to the console of the BHyve VM via /dev/ttyu2 > or some other mechanism? I would like to be able to connect to > the BHyve VM > and use something like Expect or py-expect to execute console > commands in the VM, > for automated testing. Not currently - the only options you have are to run bhyve under expect, or set up a network port and log in and run expect on commands. I have what I think is a plan to fix this: maybe for 10.1. later, Peter.