From owner-freebsd-current@freebsd.org Mon Jun 20 11:16:09 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B7C7A7B419 for ; Mon, 20 Jun 2016 11:16:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5267C1A38 for ; Mon, 20 Jun 2016 11:16:08 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-242-176.lns20.per4.internode.on.net [121.45.242.176]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id u5KBG1xw087710 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 20 Jun 2016 04:16:05 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Virtualbox kernel module on 11-CURRENT To: Kevin Oberman , Guido Falsi References: Cc: Rafael Rodrigues Nakano , FreeBSD Current From: Julian Elischer Message-ID: <0fdc268e-ab76-c589-f11f-69852ac7d57f@freebsd.org> Date: Mon, 20 Jun 2016 19:15:56 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 11:16:09 -0000 On 8/06/2016 5:13 AM, Kevin Oberman wrote: > On Tue, Jun 7, 2016 at 1:04 AM, Guido Falsi wrote: > >> On 06/07/16 02:23, Rafael Rodrigues Nakano wrote: >>> Hello, >>> >>> I tried installing virtualbox from packages, building it from sources, >>> trying the GENERIC kernel but everytime I can't start the kernel module >>> 'vboxdrv', it says: >>> "KLD vboxdrv.ko: depends on kernel - not available or version mismatch. >>> linker_load_file: Unsupported file type" >>> >> The virtualbox module needs to be in full sync with the kernel. Most >> probably the sources being used by the cluster for building packages on >> head are a little different from yours, so the kernel module is not in >> sync. >> >> You will need to build the kernel module yourself to actually match your >> kernel sources. >> >> It's not really a problem or a bug, it's how it works. On head there is >> no warranty about the KBI. This cannot happen on releases and stable >> because the KBI is not going to change there. >> >> -- >> Guido Falsi >> > I don't think this is true. While shareable libraries have fixed ABIs, I > believe the KBI can change even in STABLE branches. If a security fix > requires it, it might even change in a RELEASE. I my be wrong about this, > but I recall having to re-build the VB kmod port even withing a minor > version (i.e. STABLE). We try hard NOT to change the KBI within a single stable branch. we do things like add spare fields before we make a new stable branch to help with this. > In any case, I do strongly recommend the use of PORTS_MODULES in > /etc/src.conf to assure that the kernel modules always get re-built when > the kernel is re-built. so that the sources, the kernel, and the module are > in sync. The PORTS_MODULES are re-installed as a part of the "make > installkernel", so things are almost safe, but beware of "make > reinstallkernel" as it does not do the right thing. (See > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201779) > -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >