Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2014 23:13:17 -0500
From:      Aryeh Friedman <aryeh.friedman@gmail.com>
To:        Craig Rodrigues <rodrigc@freebsd.org>
Cc:        Peter Wemm <peter@wemm.org>, "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: Remote serial console for BHyve VM?
Message-ID:  <CAGBxaXnYLKTUhYk9ahL6pfJf%2BHzZ0iFx-9b8nfG%2BXpD4hpmQxQ@mail.gmail.com>
In-Reply-To: <CAG=rPVf-2ZoyUWP7q_S7voUn54nGKbtuWNtQX-KL3sJNMtb6MA@mail.gmail.com>
References:  <CAG=rPVf-2ZoyUWP7q_S7voUn54nGKbtuWNtQX-KL3sJNMtb6MA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 6, 2014 at 5:56 PM, Craig Rodrigues <rodrigc@freebsd.org> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXnYLKTUhYk9ahL6pfJf%2BHzZ0iFx-9b8nfG%2BXpD4hpmQxQ>