Re: The driver vboxdrv.ko, in the port virtualbox-ose-kmod, is not loadable in FreeBSD 13.3-RELEASE.

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Fri, 15 Mar 2024 14:57:51 UTC

> On Mar 15, 2024, at 5:46 PM, Maurizio Vairani <maurizio.vairani@cloverinformatica.it> wrote:
> 
> Hi list,
> recompiling and loading the driver in 13.3-RELEASE I have the error:

```
# pkg install virtualbox-ose-kmod
=====
Message from virtualbox-ose-kmod-6.1.50:

--
The vboxdrv kernel module uses internal kernel APIs.

To avoid crashes due to kernel incompatibility, this module will only
load on FreeBSD 13.2 kernels.
```

So I guess the virtualbox driver source is not compatible with FreeBSD 13.3 .

> 
> # kldload vboxdrv.ko
> kldload: can't load vboxdrv.ko: module already loaded or in kernel

The EEXIST error number is misleading. Despite the error message
from kernel is accurate.

> # dmesg | tail -1
> KLD vboxdrv.ko: depends on kernel - not available or version mismatch
> 
> What I can do ?

Maybe someone familiar with virtualbox would hack into the driver source and
make it happy with FreeBSD 13.3 .

> 
> Regards.
> --
> Maurizio
> 
> 

Best regards,
Zhenlei