From owner-freebsd-virtualization@FreeBSD.ORG Fri Feb 28 07:45:20 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 5F55A886; Fri, 28 Feb 2014 07:45:20 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3D4F01B16; Fri, 28 Feb 2014 07:45:19 +0000 (UTC) Received: from Birdhouse-o-My.local (208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s1S7jJMx010436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 27 Feb 2014 23:45:19 -0800 (PST) (envelope-from crapsh@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98] claimed to be Birdhouse-o-My.local Message-ID: <53103E8E.80709@monkeybrains.net> Date: Thu, 27 Feb 2014 23:45:18 -0800 From: "Rudy (bulk)" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Peter Grehan Subject: [SOLVED] Re: lazy bhyve doesn't boot until I conenct to console References: <5310346B.4000001@monkeybrains.net> <531035FD.4030704@freebsd.org> In-Reply-To: <531035FD.4030704@freebsd.org> X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: 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: Fri, 28 Feb 2014 07:45:20 -0000 On 2/27/14, 11:08 PM, Peter Grehan wrote: > Hi Rudy, > > >> I'm seeing something odd... I am running this command: >> >> bhyve -c 4 -m 2048M -H -P -A -s 0:0,hostbridge -s 1:0,lpc -s >> 2,virtio-net,tap1 -s 3,virtio-blk,/dev/zvol/data/vm1 -l com1,/dev/nmdm1A >> vm1 >> but I the VM is being lazy... > > A number of people have reported this, and looking at it, I think > it's a bug in bhyve. > > nmdm attempts to simulate modem control (not quite correctly - run > back-back cu's to see some of the behaviour), but also bhyve doesn't > open the device non-blocking. This results in the open() syscall > waiting for simulated carrier-detect to arrive, which doesn't happen > until the other end of the nmdm is opened. > I have a fix: echo into the nmdm after booting VM. Added this line to bhyve.rc echo >> ${bhyve_nmdmBdev} Rudy