From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 25 01:40:39 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 38C1EBA3 for ; Tue, 25 Feb 2014 01:40:39 +0000 (UTC) Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EC6251E57 for ; Tue, 25 Feb 2014 01:40:38 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id x3so1600603qcv.32 for ; Mon, 24 Feb 2014 17:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IdNVH66ANhe5GeVRFCs7Crv02dNg5VJ70vLjcX7cXys=; b=s4o0BIPCVqxCKLhOD9UQEYUmrv8scYzBOil9/4qCCGnL0yatDZBb5EHtxPNqoYxOQN Rluwvm30rzyqVVjmAOBJfXYh35Z/xsIXsnx781AmyjfdAkTTZaqs3wAIaFPINYqNsp0Z pTkjAz8k5/Gx5D4NSE/Atf4F2UxKiLnc0vRsckii+cZvsm/k3i5P7UH1bBnfUhL6j1+e s6C8NYKNuNOhhfzyUSTPJlkI0N7gn4PqGh83ivCzfm2cVhqJXJ9Qs5LajB9NUqIZeGmy T7ihmUxaazNsJQ1k5CwgwEWSUMZu3+a/r5M38n4RXHeYd2mNwi1huDAg2VpFJKs2y2WR mkYg== MIME-Version: 1.0 X-Received: by 10.224.113.204 with SMTP id b12mr34089975qaq.35.1393292438122; Mon, 24 Feb 2014 17:40:38 -0800 (PST) Received: by 10.140.87.71 with HTTP; Mon, 24 Feb 2014 17:40:38 -0800 (PST) In-Reply-To: <20140223155741.GA75513@psconsult.nl> References: <20140223155741.GA75513@psconsult.nl> Date: Mon, 24 Feb 2014 17:40:38 -0800 Message-ID: Subject: Re: Bhyve segfaults when accessing the network From: Neel Natu To: Paul Schenkeveld Content-Type: text/plain; charset=ISO-8859-1 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 01:40:39 -0000 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? best Neel > With kind regards, > > Paul Schenkeveld > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"