From owner-freebsd-virtualization@FreeBSD.ORG Fri Oct 4 06:12:44 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 643F197B; Fri, 4 Oct 2013 06:12:44 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pd0-x22a.google.com (mail-pd0-x22a.google.com [IPv6:2607:f8b0:400e:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 32CB42761; Fri, 4 Oct 2013 06:12:44 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id x10so3573854pdj.29 for ; Thu, 03 Oct 2013 23:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8rV/VTEHGavDSLJpMFRZoM46itH5aBhtZlB14jgo41Q=; b=jwnIRpnQ60xd/KmCGSMmUJhJ+f5Sqv1m5uiXeYVMF+3KU2yPP7ZQtY8quPvPl1KgHJ O7fgUhfqAfu5EyMjntUWGvUP5+a68wSkLLm9MyZA2xTbPQvHenJpBOy2lrsKg1zWFljq NpseYwli807AvXsmIUMD+fUup/ZrJYUr7jMAMYMdXWuqATheKNukZrsUbXESfaEmRLG8 7uaHfre/GLHiPhbzEx3lsaZUA+QquAjo2SJju1El9w2nTWlPWeA6/8x82rwAHMxr2NcW 2YIwIizird8tCwVatwX7N6PEifUU9Q+S7wotfIx8TxPsoX1SegkImLqFo+h3/n3G0jXR baOQ== MIME-Version: 1.0 X-Received: by 10.68.98.2 with SMTP id ee2mr282063pbb.186.1380867163710; Thu, 03 Oct 2013 23:12:43 -0700 (PDT) Received: by 10.68.253.162 with HTTP; Thu, 3 Oct 2013 23:12:43 -0700 (PDT) In-Reply-To: <524E546D.9000008@freebsd.org> References: <522B5010.1080105@freebsd.org> <524E546D.9000008@freebsd.org> Date: Fri, 4 Oct 2013 02:12:43 -0400 Message-ID: Subject: Re: Problems with missing ttyv devices in BHyve? From: Aryeh Friedman To: Peter Grehan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 06:12:44 -0000 petitecloud uses the second approach to how to connect but one of the minor tweaks we have planned between 0.1.9 and 0.2 (0.1.9 is the last 0.1.X version and will be released later today) is to mount the drive via mdconfig and do a sed of /etc/ttys to the recommended fix that way when you reboot after install it will allow at least one console session via petitecloud alone (we have some ideas on the general issue but that's down the road) On Fri, Oct 4, 2013 at 1:38 AM, Peter Grehan wrote: > 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. > > > ______________________________**_________________ > freebsd-virtualization@**freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-**virtualization > To unsubscribe, send any mail to "freebsd-virtualization-** > unsubscribe@freebsd.org " >