From owner-freebsd-virtualization@FreeBSD.ORG Thu Jan 31 20:55:52 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 58513F12 for ; Thu, 31 Jan 2013 20:55:52 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 19070153 for ; Thu, 31 Jan 2013 20:55:51 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 4CBEF1216B; Fri, 1 Feb 2013 06:55:50 +1000 (EST) Received: from vpn2ntap-539003.vpn.netapp.com (pos-ext.netapp.com [198.95.226.40]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BJQ93949 (AUTH peterg@ptree32.com.au); Fri, 1 Feb 2013 06:55:48 +1000 Message-ID: <510ADA51.10503@freebsd.org> Date: Fri, 01 Feb 2013 06:55:45 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Marat Bakeev Subject: Re: run bhyve vm headless References: <510A6A5A.1000605@Hawara.com> In-Reply-To: <510A6A5A.1000605@Hawara.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 31 Jan 2013 20:55:52 -0000 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 ,uart instead of -S ,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.