From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 25 09:54:06 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76703811 for ; Tue, 25 Feb 2014 09:54:06 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.hvnu.psconsult.nl [46.44.189.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 02E77151B for ; Tue, 25 Feb 2014 09:54:03 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.hvnu.psconsult.nl [46.44.189.154]) by mx1.psconsult.nl (8.14.5/8.14.4) with ESMTP id s1P9roJB083516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 25 Feb 2014 10:53:55 +0100 (CET) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.5/8.14.4/Submit) id s1P9rnch083515; Tue, 25 Feb 2014 10:53:49 +0100 (CET) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Tue, 25 Feb 2014 10:53:49 +0100 From: Paul Schenkeveld To: Neel Natu Subject: Re: Bhyve segfaults when accessing the network Message-ID: <20140225095349.GA82923@psconsult.nl> References: <20140223155741.GA75513@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Virtualization 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: Tue, 25 Feb 2014 09:54:06 -0000 Hi Neel, On Mon, Feb 24, 2014 at 05:40:38PM -0800, Neel Natu wrote: > Hi Paul, > > On Sun, Feb 23, 2014 at 7:57 AM, Paul Schenkeveld wrote: > > Hi, > > > > I tried to get bhyve to run on my home server but got consistent > > crashes as soon as I touch the network. > > > > Hardware: Supermicro X9SPV-F3610ME-O (embedded i5) with 16GB RAM > > > > Host kernels (+userland of the same version): > > 10.0 RC5 > > 10.0 RELEASE > > 10 STABLE > > > > The kernel has been stripped (unneeded drivers and stuff like DEBUG, > > AUDIT, CAPABILITIES, MAC removed) > > > > Guest operating systems: > > 9.2 RELEASE > > 10.0 RELEASE > > > > Procedure: > > # ifconfig tap0 create up > > # ifconfig bridge0 create up > > # ifconfig bridge0 addm tap0 addm em0 > > # kldload vmm > > # mkdir /vm/test > > # cd /vm/test > > # ln -s /images/FreeBSD-10.0-RELEASE-amd64-disc1.iso release.iso > > # sh vmrun.sh -c 1 -m 512 -t tap0 > > > > > > > /etc/ttys> > > > > > > > > At the point where DHCP sends the first query I get a segmentation fault > > and the guest stops. > > > > I can provoke the same segfault by not putting the DHCP line into > > rc.conf and trying to ifconfig vtnet0 or by adding tap0 to bridge0 in > > the host after the guest has stopped. > > > > Although it worked perfectly fine with bhyve a couple of months ago > > (with an older build of 10.0-CURRENT that I don't have here anymore), I > > suspected the hardware and tried the same on my Macbook Pro with Vmware > > Fusion with a 10.0 RELEASE guest. > > > > The stripped 10 STABLE guest segfaults in the same way, the other two > > both work. > > > > I bought the home server for building software for older releases > > (mostly FreeBSD 8 and 9), my Macbook with Fusion is too slow and often > > in use for other purposes. > > > > Is this behaviour seen by others? > > > > I can provide more details or core dumps if that helps locating/solving > > the problem. > > > > I am not clear about what exactly is segfaulting: is it the bhyve > process or the guest kernel? Do you have a screenshot and/or a > backtrace of the segfaulting entity? It looks like it's the bhyve process. I'm travelling at the moment, if can get to the machine from the hotel I'll try and send you a screen shot tonight, otherwise when I'm back at the end of the week. Thank you. > best > Neel With kind regards, Paul Schenkeveld