From owner-freebsd-current@freebsd.org Tue Jun 7 21:13:05 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 37C5CB6EDEE for ; Tue, 7 Jun 2016 21:13:05 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 081CC1066 for ; Tue, 7 Jun 2016 21:13:05 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-it0-x231.google.com with SMTP id h190so32559915ith.1 for ; Tue, 07 Jun 2016 14:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=0a6M+ivL98ReI71leK3kNOPoCi24Xj+kmL6eT55i57A=; b=iZJSKqk6ww7RbdOOjMSsYBQkKWVUSucaOePB66dbC8QEky9sBsT0HFKZir81iaRn/l RKOPw2sJWNNC0Hk+1ilG3pCGhdGnuFF9ajmiHqoercuKgF3vixR73t36TWRs0QejX2du pckNAegZUKPKzLLj1nOiAzbP4fLa6D7tMfMqNgtJtdU+S7LKxOjuy3JnSlvaC1nxClRR dB5dfW86u9x61HKwLDj+LCvLe/nhXFBjX3iT1G1G86ysqlJii6C5fTYA/a09d4oDvz06 +Qrec6ww9emeWGeyHKrEZi+3oWu0pcxHDTDHPzvePUZUxeWBhJVXuOzwxG4VChnDQvO0 IVXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=0a6M+ivL98ReI71leK3kNOPoCi24Xj+kmL6eT55i57A=; b=FeYfPZYCRzmcFBNhQWto1qW8wZcL2/Y3gCbbWjZnY/TDYqvG/PGBo2iav/3lCvOGGH chG+ma9eh7g4vyvoCsKrCkSobz50s6lztaMEFjouWhKW20Xn9kAs/bOH7CgVZDRL8XIk SQckh8IrNEU9xCv6eMlEfz6wt1mWc6EqX6fAoof4BnaF7dRiub4OzDLv+37hwKOQATdQ EwuS2tW6cfDfTVVzPm8vJzLgwpC7DvAKEDLlgCIBCjUPjA4XNgI2Kd1CJjrr1qvS+9zC bS8WWMVR7nb1E7adsB4eejLHv+j/QzhOXpt0xx+Dvmwvw22+9o8maXoLkHZvW65rGvoL qfpw== X-Gm-Message-State: ALyK8tJkL+PxUnfn4fgxGNhbfrhRcc+QhpfYXQH9qEWVB9RQcXJaW0JYmxBv3wGT/MBsZSkY05sc6O8rMvwueg== X-Received: by 10.36.64.14 with SMTP id n14mr7002965ita.53.1465333984417; Tue, 07 Jun 2016 14:13:04 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.79.20.70 with HTTP; Tue, 7 Jun 2016 14:13:03 -0700 (PDT) In-Reply-To: References: From: Kevin Oberman Date: Tue, 7 Jun 2016 14:13:03 -0700 X-Google-Sender-Auth: VoOmKI8BBxOBoD7zXJUjMD_HK14 Message-ID: Subject: Re: Virtualbox kernel module on 11-CURRENT To: Guido Falsi Cc: Rafael Rodrigues Nakano , FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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: Tue, 07 Jun 2016 21:13:05 -0000 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). 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