From nobody Sun May 07 11:26:34 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QDhvr6xcFz4B495 for ; Sun, 7 May 2023 11:26:48 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QDhvr5JJ6z4N05 for ; Sun, 7 May 2023 11:26:48 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f13ef4ad91so4009573e87.3 for ; Sun, 07 May 2023 04:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683458807; x=1686050807; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6uWbpZ2653qhZhCv8ytGrkYvVheXnsL9yXqLf7FmSXM=; b=FnyLRm6OID7sbUSz/pvlnVtxw3UeFAQ1WYjxTTpEFPpiKTxZurJH426bGQXrxEA6gm Un4dPhGOcoO8B562HxGg5d/7oalukk2EsdCSSxU1EWqeUPK0/Cjg2HanTdiY+F1vQXNC CvMg9tsalxy/lr5mxosyJ1GFHmc4jTvZw8qjr5OlEYCBbRkIsuX64bmVOYvXpX3BBkeg qooXx6kJ5bDcp4asP/pmBABQth48wO9FRMuysvQ9wzdoPrhBFJh/8/Xug8BglzmgpgpL rSNHeGHM8IvqjrHH8wyQa5HTekIZ01Gabs/F5FhzFqdOaIn7/q/nWfnBQfePEovlRlBb /QyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683458807; x=1686050807; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6uWbpZ2653qhZhCv8ytGrkYvVheXnsL9yXqLf7FmSXM=; b=Nn1BRqfKdfZGm5Vo7UL9S+ox0i+WNn/8qBcUbZEezbFfwO0GbtDFwOiAOPbKfaTfcd OUUb6fTElauyPqhlmJcZkVKHtu19lJ8yvDbghlvZdPsKxgMSu5iAuBwMXFdSz0a6BBjK R1cozPsSLDpQ+O5+Vt/qL/e9ISqu7QrAy9fe8WhkneiPEGq3o8RdVhJAhT8+qsaEkYGl H8h4KZdpYPJSi/s6lQwSfMm/t1IzSxuktYeODKmxy/LVC1/SPqeCLUgOLyNqSR4I857R Af7tNL6Z7PHXgTY+z/ftmBXOyPSAwlkKhT9n6dZGvag/IJet0rLYpHcDSM9sxvVzbgDp IWjg== X-Gm-Message-State: AC+VfDyMmJcwc17kUiF1DgLc/+mKzEev3J8ikzetxaG9tvMK1jDjiX1N 1CJjxU1ihsx0aZn5WaL+UKudS2U/TODLKy10TRo5baV9 X-Google-Smtp-Source: ACHHUZ7ppR2s9E8QpG6s/xj8AjSgIywmfq68F5mCAgbsObdI7JIpBHDOjG+txnYStG3l4s3X6SOZLqe0TV3Ts60g6Vw= X-Received: by 2002:ac2:55a4:0:b0:4f0:304:db95 with SMTP id y4-20020ac255a4000000b004f00304db95mr1757046lfg.22.1683458806655; Sun, 07 May 2023 04:26:46 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <492aebb0-a5e1-2334-801a-79f76008c42c@Gmail.com> In-Reply-To: From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Sun, 7 May 2023 13:26:34 +0200 Message-ID: Subject: Re: linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type To: Steven Friedrich Cc: Kevin Oberman , FreeBSD Questions Mailing List Content-Type: multipart/alternative; boundary="0000000000002a2f5005fb18cc84" X-Rspamd-Queue-Id: 4QDhvr5JJ6z4N05 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000002a2f5005fb18cc84 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El dom, 7 may 2023 11:43, Steven Friedrich escribi=C3=B3: > On 5/7/23 1:57 AM, Kevin Oberman wrote: > > On Sat, May 6, 2023 at 9:47=E2=80=AFPM Steven Friedrich > > wrote: > > > > On a fresh install of freebsd 13.2 (I did make a new kernel, but I'= m > > running GENERIC for this. > > > > I used pkg install to get virtualbox-ose. When I try to load the > > vboxdrv.ko, I get this error: > > > > KLD vboxdrv.ko: depends on kernel - not available or version mismat= ch > > linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type > > > > FreeBSD freebsd.friedrich.org > > 13.2-RELEASE FreeBSD 13.2-RELEASE > > releng/13.2-n254617-525ecfdad597 GENERIC amd64 > > > > > > And here we go again... > > > > The packages are built on 13.1-RELEASE which means the package will > > not load on 3.2. You need to have a system with the 3.2 > > kernel sources and then build the .ko on that system. It does not need > > to be the system it is to be run on, but must be an amd64 processor. > > The resulting package may be installed on any other 13.2 amd64 system. > > > > To build the package, get the sources for the kernel on the build > > system. Then: > > cd /usr/ports/emulators/virtualbox-ose-kmod > > pkg install kBuild (if not already installed) > > pkg install llvm14 (if not already installed) > > make package (if you want to install on another system) > > make install (on the system you need it on) > > > > In the last status report, this issue was being addressed, so I am > > hopeful that this is the last time the issue will show up, but no > > promises. In any case, the builds will be done on 13.2 when 13.1 goes > EOL. > > -- > > Kevin Oberman, Part time kid herder and retired Network Engineer > > E-mail: rkoberman@gmail.com > > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > > Thank you, Kevin. I just finished buildworld, build kernel, > installkernel, and installworld. > > I just built/installed the virtualbox-ose-kmod port. > > Can I just rebuild/install the kernel? > You can set PORTS_MODULES in /etc/make.conf so every time you build a new kernel, the ports that need to be in sync are built too. Cheers > -- > FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE > releng/13.2-n254617-525ecfdad597 GENERIC amd64 > > > --0000000000002a2f5005fb18cc84 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


El dom, 7 may 2023 11:43, Steven Friedrich <freebsdlouisville@gmail.com>= escribi=C3=B3:
On 5/7/23 1:57 AM, = Kevin Oberman wrote:
> On Sat, May 6, 2023 at 9:47=E2=80=AFPM Steven Friedrich
> <freebsdlouisville@gmail.com> wrote:
>
>=C2=A0 =C2=A0 =C2=A0On a fresh install of freebsd 13.2 (I did make a ne= w kernel, but I'm
>=C2=A0 =C2=A0 =C2=A0running GENERIC for this.
>
>=C2=A0 =C2=A0 =C2=A0I used pkg install to get virtualbox-ose.=C2=A0 Whe= n I try to load the
>=C2=A0 =C2=A0 =C2=A0vboxdrv.ko, I get this error:
>
>=C2=A0 =C2=A0 =C2=A0KLD vboxdrv.ko: depends on kernel - not available o= r version mismatch
>=C2=A0 =C2=A0 =C2=A0linker_load_file: /boot/modules/vboxdrv.ko - unsupp= orted file type
>
>=C2=A0 =C2=A0 =C2=A0FreeBSD freebsd.friedrich.org <= ;http://freebsd.friedrich.org>
>=C2=A0 =C2=A0 =C2=A013.2-RELEASE FreeBSD 13.2-RELEASE
>=C2=A0 =C2=A0 =C2=A0releng/13.2-n254617-525ecfdad597 GENERIC amd64
>
>
> And here we go again...
>
> The packages are built on 13.1-RELEASE which means the package will > not load on 3.2. You need to have a system with the 3.2
> kernel sources and then build the .ko on that system. It does not need=
> to be the system it is to be run on, but must be an amd64 processor. <= br> > The resulting package may be installed on any other 13.2 amd64 system.=
>
> To build the package, get the sources for the kernel on the build
> system. Then:
> cd /usr/ports/emulators/virtualbox-ose-kmod
> pkg install kBuild (if not already installed)
> pkg install llvm14 (if not already installed)
> make package (if you want to install on another system)
> make install (on the system you need it on)
>
> In the last status report, this issue was being addressed, so=C2=A0 I = am
> hopeful that this is the last time the issue will show up, but no
> promises. In any case, the builds will be done on 13.2 when 13.1 goes = EOL.
> --
> Kevin Oberman, Part time kid herder and retired Network Engineer
> E-mail: rkoberman@gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

Thank you, Kevin.=C2=A0 I just finished buildworld, build kernel,
installkernel, and installworld.

I just built/installed the virtualbox-ose-kmod port.

Can I just rebuild/install the kernel?

You can set PORTS_MODULES in /etc/mak= e.conf so every time you build a new kernel, the ports that need to be in s= ync are built too.

Cheer= s


--
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-R= ELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64


--0000000000002a2f5005fb18cc84--