From nobody Fri Jul 19 03:37:41 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WQFk43S0mz5R1XB for ; Fri, 19 Jul 2024 03:37:48 +0000 (UTC) (envelope-from grog@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WQFk432zmz4gP4; Fri, 19 Jul 2024 03:37:48 +0000 (UTC) (envelope-from grog@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721360268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GBDMsbRR/KheYh69udQeU8ZGeKlVXwqR12OxX2JkvzM=; b=CB68v0YJZIEiTtmNGHnuMz4x6fW1B6GfxIPVMJqFdSpSnNTffbgQL9tPyu5s5xN4FhcIpl SAmS4bhI1DqzDqyTFNTfuKOu9XXVvoDLxMsZRuuQ6UZeEebbOHAfICoW9wVI5tdP1Yn5oG XANGkMgr9vp/tE+5uQwk7DxCbAH/px/DunrMHKUQznLr5tFiNe7Yotbx5O6EyHusWzqyAN cbv6NJSRREkvcv0M16UtmHQxgr9EdnfhsjHjDUsjNhD9RbqjYlhU2SuKecC7nwsZRqOs9g ZwyO/xfK2AzEOnHbdnJBZMVza1MRq3cqUFjdrqQibzjfgMrM40aevuE46YyfEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721360268; a=rsa-sha256; cv=none; b=W3IYZkilqBKW/XNT6X0gDsJL88fbyHCfIpUuocvJMwfTFeb66VZzFqbtJUEAeWLfYeThhU IJNYxDZu7Xv55cPcuuVhzDg0TS2BaNFCn/3eh98roBJynq6Zqv/1zcOY+wv4Zqvzp+862+ uw2u5HqBXGaF/S0wiFovniEyPt1PHIQWkLEB9v+451SXh5+uYZnPNhNp+y4gPebfsTmkLU Cgf98W24cvfKivSoLDTNepTnmqrYpbgwMJfnEBuMNCH0DZgWCfKFxX3WKNeTgMfE58Ma2X jcvAILtDM0ziLig9o9Eie9sXAatVQaGmLZlB09DlnG7Sqp0oGP7PYMMGKUXBmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721360268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GBDMsbRR/KheYh69udQeU8ZGeKlVXwqR12OxX2JkvzM=; b=w3pngRXY2eSQFN9xUn27FhSROcqFR9oi0D4Kx90AsVVHwPgLIfzOkg+HwjYgZ3Mz3eLbbr DVQ+9QZPgcbZveDv/oxW/qmmSyA8VKp7eCqiSoioS4ix1ZQ6di8mubRjoJ9fqHc9/vw92i +NatV+J2PZ5QyO3DvC5QYajztwIxD+5xbZBPFmJD7obmb+g15OTj8NFP45Z32Z+hZrwAs9 ZfE4AOAJ0rEq9AmJ+0CSSJd+G2YwjAIoclaFylGO+p9lmNAsSG0jLM4Yqh39BBOZvryC/u SLRPqf/uKPzJEJDfn5cnvEwRKuglk81goQPiN+dvdUD3MgoUd4zlP0HYOOiN4Q== Received: from hydra.lemis.com (121-200-11-253.79c80b.mel.nbn.aussiebb.net [121.200.11.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: grog/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WQFk308Ndz179f; Fri, 19 Jul 2024 03:37:46 +0000 (UTC) (envelope-from grog@freebsd.org) Date: Fri, 19 Jul 2024 13:37:41 +1000 From: Greg 'groggy' Lehey To: Graham Menhennitt Cc: freebsd-ports@freebsd.org Subject: Re: VirtualBox kmod won't load "module already loaded or in kernel" Message-ID: References: <03fb09bb-d695-4bec-8c68-0365e3a79497@menhennitt.com.au> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="STHiHUVSE9BYLdI6" Content-Disposition: inline In-Reply-To: <03fb09bb-d695-4bec-8c68-0365e3a79497@menhennitt.com.au> Organization: The FreeBSD Project Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: https://www.FreeBSD X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 --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--