Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Feb 2013 06:55:45 +1000
From:      Peter Grehan <grehan@freebsd.org>
To:        Marat Bakeev <hawara@Hawara.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: run bhyve vm headless
Message-ID:  <510ADA51.10503@freebsd.org>
In-Reply-To: <510A6A5A.1000605@Hawara.com>
References:  <510A6A5A.1000605@Hawara.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Marat,

> I`m trying to run bhyve on 10-CURRENT, from
> http://svn.freebsd.org/base/projects/bhyve,
> and i would like to run vm in headless mode, to start them from rc.d script.
> When running 10-CURRENT guest, i simply removed -S 31,uart from bhyve
> command, and the guest started fine.

  I didn't know that worked :) I'll give it a try.

> When i`m trying to do the same with 9.1-RELEASE (plus virtio modules),
> it only starts with the -S 31,uart option,
> without it vm seems to do nothing at all - it never answers ping, no ssh
> etc, and there is no way for me to see what is happening inside,
> dmesg and messages logs are empty.
> Are there any ways to run vms in background, or to detach from console,
> if guest is started with the -S uart option? Or am I using this wrong?

  Hmmm, I thought that it would work fine if the 'stdio' option wasn't 
used with the uart emulation

  e.g.   -S  <slot>,uart

    instead of

         -S  <slot>,uart,stdio

  What the former does is to drop all output sent to the uart, and not 
have any input. This would be one way to run in the background. Another 
would be to use the latter syntax and setup i/o redirection from 
/dev/null when starting the bhyve process.

later,

Peter.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?510ADA51.10503>