From owner-freebsd-virtualization@FreeBSD.ORG Sun Jan 12 04:13:18 2014 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 ESMTPS id 5A91496A; Sun, 12 Jan 2014 04:13:18 +0000 (UTC) Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [IPv6:2607:f8b0:400e:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2AE8A11A4; Sun, 12 Jan 2014 04:13:18 +0000 (UTC) Received: by mail-pa0-f45.google.com with SMTP id ld10so1835256pab.32 for ; Sat, 11 Jan 2014 20:13:17 -0800 (PST) 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=aGPJLl5Ue9PfbG65hmLidfq5nUw8grW9Uc28cJEBhZg=; b=EaBkACXvwsW7EZZTiwWlu7Xbfn3qogf8B3iubIpDPBTxERSSUD9f5xOkO966b+ULWp Kig70DaPvlKwEfdYXV48yzAKW1tIYUYkMZ/UEBg9+wOrvFZkdtKidps25ZADbJNslz+1 wPpLtb3yuEgfQqIbsXvYVFS5dIg03X9MYrrJ/gdjP7RLDNVGgfPw6HMQpQlWPjQmRIxE TZzC4itxRcBMl76dUQuXPYSd/GiWw8TKdBNUetiviOZTZTsiReX3XAR6xNX9FZdXVXfo KB9zBmjY44AyA1huuUNsz+bwv7/1UGp1WjArzNvIdCKS3MZwpt1ihP6dUsIgZvwFYAJM 5uLg== MIME-Version: 1.0 X-Received: by 10.66.141.231 with SMTP id rr7mr21366525pab.41.1389499997738; Sat, 11 Jan 2014 20:13:17 -0800 (PST) Received: by 10.68.185.130 with HTTP; Sat, 11 Jan 2014 20:13:17 -0800 (PST) In-Reply-To: References: Date: Sat, 11 Jan 2014 23:13:17 -0500 Message-ID: Subject: Re: Remote serial console for BHyve VM? From: Aryeh Friedman To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Peter Wemm , "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: Sun, 12 Jan 2014 04:13:18 -0000 On Mon, Jan 6, 2014 at 5:56 PM, Craig Rodrigues wrote: > Hi, > > I am working with Sean Bruno to set up some BHyve VM's. > > Right now, the vmrun.sh script tells BHyve to direct > the serial console to stdout. > Best solution for a permanent remote console I have heard so far is to use screen to be able to reconnect to it. We (Dee Nixon and I) have not actually done this, however, and are looking for a more portable solution. If I want to have the VM's start via an rc.d script, and > have the VM be headless, what is the best way to have > the VM console still be accessible? > A small hack to PetiteCloud (which neither me or Dee have time for but would be very interested in if someone can do it) might be the best here since PetiteCloud has auto start on boot -- something that is hard to do without a lot of custom scripting if you're going with no front-end. For example it took us over 40 hrs of work to add the auto-start capability to PetiteCloud. (We were never able to get vmrun.sh to start on boot.) > > Has anyone done something like use netcat > to direct the BHyve stdio to a socket? > Me and Dee spent a few weeks with something like it last summer and didn't have much success. > That way the serial console could be accessed remotely > via telnet or ssh. > > Is there a better way to do this? > > -- > Craig > _______________________________________________ > 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" >