This is the error that it gives when I try to load on 14.1 the vmm.ko module that belong to 14.0 :
Code:
root@marietto /boot/kernel]==> kldload vmm.ko
kldload: can't load vmm.ko: module already loaded or in kernel
is there a method to load it ? It is telling a lie,the module hasn't been loaded :
Code:
[root@marietto /boot/kernel]==> kldstat | grep vmm
nothing.
The message
kldload: can't load vmm.ko: module already loaded or in kernel
trying to load 14.0
vmm.ko on 14.1 is misleading.
Look in the system console (tty0, Alt+F1),
dmesg(8) or
/var/log/messages. There should be a report about kernel version mismatch.
There is no method to load a kernel module build against a specific kernel version (14.0) on another kernel version (14.1). Forget what those on reddit are saying in your thread, it's nonsense.
The problem arises when I have upgraded 14.0 to 14.1 using the freebsd-update script. I suspect that that method embedded the (wrong) module inside the kernel config file.
Not sure what you mean by "embedded the (wrong) module inside the kernel config file", but it's unlikely that a 14.0 kernel module was installed in a 14.1 upgrade by
freebsd-update(8). More likely, given the fact you configure your system in unusual, unsupported ways, it was placed by yourself.
Sorry,I haven't a clear idea about how to do what you are suggesting.
You mention on
r/freebsd a "trick (or the patch)". What was the trick or patch? If there is a patch maybe it can be applied on 14.1.
should I recompile the kernel declaring that I want to load that module using the loader.conf file ?
The GENERIC kernel comes already with
vmm.ko as a module ready for
loader.conf, no special configuration needed. With the right
vmm.ko compiled against the same kernel it is loaded under, setting it in
loader.conf to auto-load on system boot is no problem.
There is always the PR path to your issue:
https://bugs.freebsd.org.