Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2024 13:37:41 +1000
From:      Greg 'groggy' Lehey <grog@freebsd.org>
To:        Graham Menhennitt <graham@menhennitt.com.au>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: VirtualBox kmod won't load "module already loaded or in kernel"
Message-ID:  <ZpnfhbR7_UPp0iMq@hydra.lemis.com>
In-Reply-To: <03fb09bb-d695-4bec-8c68-0365e3a79497@menhennitt.com.au>
References:  <03fb09bb-d695-4bec-8c68-0365e3a79497@menhennitt.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--STHiHUVSE9BYLdI6
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Friday, 19 July 2024 at 13:23:46 +1000, Graham Menhennitt wrote:
> Hello all,
>
> I'm running FredBSD 14.1 amd64 with a GENERIC kernel. I've installed
> VirtualBox from packages. But I can't load any of its kmod modules. When I
> try, I get a message:
> =A0=A0=A0 # kldload vboxdrv
> =A0=A0=A0 kldload: can't load vboxdrv: module already loaded or in kernel
> =A0=A0=A0 #
> However, neither of those things is true:
> =A0=A0=A0 # kldstat -v|grep -i virtualbox
> =A0=A0=A0 #

Yes.  It lies.  It's VB's inimitable way of saying "you have the wrong
module version for this kernel".  It should be sufficient to rebuild
the virtualbox-ose-kmod port.  Don't install the package, because it
doesn't know what kernel you have.

I also rebuilt virtualbox-ose, but that's quite a pain and I don't
think it's necessary.  See
http://www.lemis.com/grog/diary-jun2024.php?subtitle=3DStill%20more%20Virtu=
alBox%20fun&article=3DD-20240630-002403#D-20240630-002403
for more details.

When you're done, 'kldload vboxnetadp' should be enough.  That will
load the other modules.

Greg
--
Sent from my desktop computer.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.php

--STHiHUVSE9BYLdI6
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQSaG4ICvM64RvkvCawi5vKQUHpCIwUCZpnfhQAKCRAi5vKQUHpC
I4ngAJ9qjY38SocX9hmiRiSO8ImHkPuNTwCgmCUbt1Jxbue7TLG+P/jKMRNdgnk=
=WElc
-----END PGP SIGNATURE-----

--STHiHUVSE9BYLdI6--



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