From owner-freebsd-virtualization@FreeBSD.ORG Sun Feb 23 15:57:59 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 105AB788 for ; Sun, 23 Feb 2014 15:57:59 +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 7DB3218D2 for ; Sun, 23 Feb 2014 15:57:57 +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 s1NFvg2L079293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 23 Feb 2014 16:57:47 +0100 (CET) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.5/8.14.4/Submit) id s1NFvf10079290; Sun, 23 Feb 2014 16:57:41 +0100 (CET) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Sun, 23 Feb 2014 16:57:41 +0100 From: Paul Schenkeveld To: FreeBSD Virtualization Subject: Bhyve segfaults when accessing the network Message-ID: <20140223155741.GA75513@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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: Sun, 23 Feb 2014 15:57:59 -0000 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 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. With kind regards, Paul Schenkeveld