Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2023 22:57:42 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Steven Friedrich <freebsdlouisville@gmail.com>
Cc:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type
Message-ID:  <CAN6yY1sCgAfQoDepHkPQn5YpBdd5TVKDGTtwLgtv1XKZgJ_YFA@mail.gmail.com>
In-Reply-To: <492aebb0-a5e1-2334-801a-79f76008c42c@Gmail.com>
References:  <492aebb0-a5e1-2334-801a-79f76008c42c@Gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000045ff7105fb1434d8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, May 6, 2023 at 9:47=E2=80=AFPM Steven Friedrich <freebsdlouisville@=
gmail.com>
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 mismatch
> 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.
--=20
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

--00000000000045ff7105fb1434d8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">On Sat, May 6, 2023 at 9:47=E2=
=80=AFPM Steven Friedrich &lt;<a href=3D"mailto:freebsdlouisville@gmail.com=
">freebsdlouisville@gmail.com</a>&gt; wrote:</div></div><div class=3D"gmail=
_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">On a fresh instal=
l of freebsd 13.2 (I did make a new kernel, but I&#39;m <br>
running GENERIC for this.<br>
<br>
I used pkg install to get virtualbox-ose.=C2=A0 When I try to load the <br>
vboxdrv.ko, I get this error:<br>
<br>
KLD vboxdrv.ko: depends on kernel - not available or version mismatch<br>
linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type<br>
<br>
FreeBSD <a href=3D"http://freebsd.friedrich.org" rel=3D"noreferrer" target=
=3D"_blank">freebsd.friedrich.org</a> 13.2-RELEASE FreeBSD 13.2-RELEASE <br=
>
releng/13.2-n254617-525ecfdad597 GENERIC amd64<br></blockquote><div><br></d=
iv><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gm=
ail_default">And here we go again...</div><div style=3D"font-family:tahoma,=
sans-serif;font-size:small" class=3D"gmail_default"><br></div><div style=3D=
"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">The=
 packages are built on 13.1-RELEASE which means the package will not load o=
n 3.2. You need to have a system with the 3.2<br></div></div><div style=3D"=
font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default"> ker=
nel sources and then build the .ko on that system. It does not need to be t=
he 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.</div><div style=
=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">=
<br></div><div style=3D"font-family:tahoma,sans-serif;font-size:small" clas=
s=3D"gmail_default">To build the package, get the sources for the kernel on=
 the build system. Then:<br></div><div style=3D"font-family:tahoma,sans-ser=
if;font-size:small" class=3D"gmail_default">cd /usr/ports/emulators/virtual=
box-ose-kmod</div><div style=3D"font-family:tahoma,sans-serif;font-size:sma=
ll" class=3D"gmail_default">pkg install kBuild (if not already installed)</=
div><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"g=
mail_default">pkg install llvm14 (if not already installed)</div><div style=
=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">=
make package (if you want to install on another system)<br></div><div style=
=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">=
make install (on the system you need it on)<br></div><div style=3D"font-fam=
ily:tahoma,sans-serif;font-size:small" class=3D"gmail_default"><br></div><d=
iv style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_d=
efault">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 pro=
mises. In any case, the builds will be done on 13.2 when 13.1 goes EOL.<br>=
</div><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr"=
 class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div=
 dir=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman, Part time kid herder and =
retired Network Engineer<br>E-mail: <a href=3D"mailto:rkoberman@gmail.com" =
target=3D"_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D0=
3FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div><=
/div></div></div>

--00000000000045ff7105fb1434d8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1sCgAfQoDepHkPQn5YpBdd5TVKDGTtwLgtv1XKZgJ_YFA>