From owner-freebsd-virtualization@FreeBSD.ORG Fri Oct 4 17:34:25 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 A3844FD9; Fri, 4 Oct 2013 17:34:25 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 023242B79; Fri, 4 Oct 2013 17:34:24 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id es20so3577425lab.10 for ; Fri, 04 Oct 2013 10:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gxozzRGkw2ErIH2PXKHJ23UY9QWmTmgD7NyNJaUhrlA=; b=WwfWmaZXu5qNxAjCx312thuh1Tr2o+4i3QRwlG3NPcDKdP7VGJwWaaLeQsM3zMoszC H3E3AcE2VkxvcfyCBQhVFIuSVmm9PcIRp5iYtk+xgtr1dr5hHwEov7Mtcf4yg/BO6m+2 4IR2UW37gT0cTw0OvNwAXz6OOmOmM0+7Uk1BOZUh+p3OueYOHrPBXHrQTDJjOOsYjzd8 vhf7C3DAnCrHR/0VkAloJHU4PH+Hg5ZqztQJ6j/wz+fLFLG+f8fAPSpZLj1MX7w7eXbs 84HAuQgpqSuHKcGdHkP2K3p2rcJBMC2VJxgVjf5DqgN1szGvfGmsSJQZhmRyAQg6gLYY Hh5Q== MIME-Version: 1.0 X-Received: by 10.152.9.37 with SMTP id w5mr12741690laa.23.1380908062912; Fri, 04 Oct 2013 10:34:22 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.139.132 with HTTP; Fri, 4 Oct 2013 10:34:22 -0700 (PDT) In-Reply-To: <524E546D.9000008@freebsd.org> References: <522B5010.1080105@freebsd.org> <524E546D.9000008@freebsd.org> Date: Fri, 4 Oct 2013 10:34:22 -0700 X-Google-Sender-Auth: 2jrMOAZI7rQQNm47XQBI5Gw9_Bo Message-ID: Subject: Re: Problems with missing ttyv devices in BHyve? From: Craig Rodrigues 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 17:34:25 -0000 On Thu, Oct 3, 2013 at 10:38 PM, Peter Grehan wrote: > > > (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. > OK. Once FreeNAS is fully set up, networking via the tap device works great, and I have been able to access the web GUI and ssh into FreeNAS inside BHyve with no problems. However, what I am trying to test is the early stage bootup of our installation CD, before FreeNAS is installed on the disk. When our CD boots up, it presents a text-based dialog menu where the user can select certain items and choose which disk to install on. If I could access the console in BHyve at this point via expect to drive the install menu, that would be very useful. -- Craig