From nobody Wed Jul 24 09:41:13 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 4WTTYb5ytvz5Rd3g for ; Wed, 24 Jul 2024 09:41:39 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Received: from ipv6.s149.cyber-folks.pl (ipv6.s149.cyber-folks.pl [IPv6:2a02:1778::113:254]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4WTTYZ6Y4Jz4LKQ; Wed, 24 Jul 2024 09:41:38 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=smyrak.com header.s=x header.b=rqrTj7QH; dmarc=pass (policy=none) header.from=smyrak.com; spf=pass (mx1.freebsd.org: domain of ps.ports@smyrak.com designates 2a02:1778::113:254 as permitted sender) smtp.mailfrom=ps.ports@smyrak.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smyrak.com; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=GsTKlfJldbveJisZab1BnnTU6XeYMMi1DJ4uaL+8Wo4=; b=rqrTj7QHFjWrg1VLkaN3DMm05H lP6y9lBSyOmD2G3fOfcXvhEfL1c7FQZ9rUSRm8DR8q9bgJk2M67HKNIsfZL+8pKVY4MIeeWLQZh0o hpxqsvvho8MQSBoeFYGYZyVQHLVWJHbPlBHd06YHEHeYiapXPbjyz+1K2+7Ask9wdYA09MbR70U3b rI18VDx/utyh7TzdGNtBaO8ebZP0HML/1NS42qfFEUnMujBDjodYsFxCS4fYwraWQ+aEreyWxG8xY OjUhc6/M/wIx7jMthxYcso28BPbbuh+L8KzHW5kFwvl0QsPH51PBpLVkoO9rE/gMlVXnb1O7oTLeO +8wBSEJQ==; Received: from 93-181-165-201.internetia.net.pl ([93.181.165.201] helo=daleth.home) by s149.cyber-folks.pl with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1sWYV7-000000007zp-2q1B; Wed, 24 Jul 2024 11:41:37 +0200 Date: Wed, 24 Jul 2024 11:41:13 +0200 From: Piotr Smyrak To: freebsd-ports@freebsd.org Cc: Greg 'groggy' Lehey , Graham Menhennitt Subject: Re: VirtualBox kmod won't load "module already loaded or in kernel" Message-ID: <20240724114113.280de5fc@daleth.home> In-Reply-To: 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: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: piero@smyrak.com X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.60 / 15.00]; NEURAL_HAM_MEDIUM(-0.98)[-0.982]; NEURAL_HAM_LONG(-0.98)[-0.978]; NEURAL_HAM_SHORT(-0.94)[-0.940]; DMARC_POLICY_ALLOW(-0.50)[smyrak.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a02:1778::113:0/116]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:41079, ipnet:2a02:1778::/48, country:PL]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_PERMFAIL(0.00)[smyrak.com:s=x]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; DKIM_TRACE(0.00)[smyrak.com:~] X-Rspamd-Queue-Id: 4WTTYZ6Y4Jz4LKQ On Fri, 19 Jul 2024 13:37:41 +1000 Greg 'groggy' Lehey wrote: > 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: > > =C2=A0=C2=A0=C2=A0 # kldload vboxdrv > > =C2=A0=C2=A0=C2=A0 kldload: can't load vboxdrv: module already loaded o= r in kernel > > =C2=A0=C2=A0=C2=A0 # > > However, neither of those things is true: > > =C2=A0=C2=A0=C2=A0 # kldstat -v|grep -i virtualbox > > =C2=A0=C2=A0=C2=A0 # =20 >=20 > 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. It's worth to note that there is a systematic solution to rebuild ports that install kernel modules each time a new kernal is installed from sources. Placing such a line in /etc/make.conf will induce rebuilding of kmod port by system Makefiles: PORTS_MODULES +=3D emulators/virtualbox-ose-kmod HTH, --=20 Piotr Smyrak