Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2023 05:43:09 -0400
From:      Steven Friedrich <freebsdlouisville@gmail.com>
To:        Kevin Oberman <rkoberman@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:  <f6ce85e9-ca18-1425-1e1c-e895b9672a34@Gmail.com>
In-Reply-To: <CAN6yY1sCgAfQoDepHkPQn5YpBdd5TVKDGTtwLgtv1XKZgJ_YFA@mail.gmail.com>
References:  <492aebb0-a5e1-2334-801a-79f76008c42c@Gmail.com> <CAN6yY1sCgAfQoDepHkPQn5YpBdd5TVKDGTtwLgtv1XKZgJ_YFA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/7/23 1:57 AM, Kevin Oberman wrote:
> On Sat, May 6, 2023 at 9:47 PM 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 <http://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?

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f6ce85e9-ca18-1425-1e1c-e895b9672a34>