From owner-freebsd-virtualization@FreeBSD.ORG Fri Feb 1 12:45:24 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 92D1F98A for ; Fri, 1 Feb 2013 12:45:24 +0000 (UTC) (envelope-from hawara@Hawara.com) Received: from hawara.com (hawara.com [188.123.234.55]) by mx1.freebsd.org (Postfix) with ESMTP id E1FCE292 for ; Fri, 1 Feb 2013 12:45:23 +0000 (UTC) Received: from hawara.office.masterhost.ru ([87.242.97.4]) (AUTH: CRAM-MD5 hawara@hawara.com, TLS: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by hawara.com with ESMTPSA; Fri, 01 Feb 2013 16:45:19 +0400 id 000DBB28.510BB8DF.00016857 Message-ID: <510BB8DE.5080103@Hawara.com> Date: Fri, 01 Feb 2013 16:45:18 +0400 From: Marat Bakeev User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130111 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: run bhyve vm headless References: <510A6A5A.1000605@Hawara.com> <510ADA51.10503@freebsd.org> In-Reply-To: <510ADA51.10503@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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, 01 Feb 2013 12:45:24 -0000 On 01/02/2013 00:55, Peter Grehan wrote: > 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. Hi! Thanks for the advice, running it like this: bhyve -c 2 -a -A -m 1024 -M 4096 -I -H -g 0 -s 0:0,hostbridge -s 1:0,virtio-net,tap3 -s 2:0,virtio-blk,/dev/zvol/z0/bhyve/vm3 -S 31,uart,stdio vm3 < /dev/null - really allows me to send it to background! But, if i modify -S 31,uart,stdio to -S 31,uart - 9.1 guest still won`t boot - bhyve process is in [vmidle] state, and there is no activity inside vm. I don`t know if this is important, reporting it just in case :) Thank you.