From nobody Sat Jul 20 02:55:07 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 4WQrkW3JbXz5QxBX for ; Sat, 20 Jul 2024 02:55:15 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from serval.cherry.relay.mailchannels.net (serval.cherry.relay.mailchannels.net [23.83.223.163]) (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 4WQrkT5ThBz42H2; Sat, 20 Jul 2024 02:55:13 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Authentication-Results: mx1.freebsd.org; none X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8D07445291; Sat, 20 Jul 2024 02:55:11 +0000 (UTC) Received: from pdx1-sub0-mail-a282.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 35126465E2; Sat, 20 Jul 2024 02:55:11 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1721444111; a=rsa-sha256; cv=none; b=23AFT86TA1pps6YNyRwk6RLnPcmMQDs2GAztdYjvYo47FV6ntrGZfxvAEFCimcdx1hkOTQ IqwSXNx0dc3fUHoht5gO3H5bBmqw/QJG6DK4PH0vbyVxNFnxyyKlnZGjRoOSiPq0pHOjtI +CO7LcbGpYQmsAKQjhaiinzyol7tPpCnLF7Yb6t7v1IWTrtk7t9X11AZZN+2pshJXDZOwX yzCbOsWuFwWmQ3RHZglsf0cgFM2V0Gm0gg5ZTwGzUoSfiTfBSMlPEZL6afWWAunhbutWn6 tXOSDrm+HPjkFS5yDCySWrOknTfe35Rj0vGuzqKKgFEkWiKST4wH7VgVIM97SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1721444111; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=7FMB3IVQ/yUUnN6VSGxTqqJbYfjtdOQqyqrYmHC0yt8=; b=SCV9pN4B6NmFD5uFTlLEATTjw81lJ1NcgL0B4WcQONxZIjDNrArWKwBIHU+jSuZWTygpmr l4Tx8E8sCQTW4N0pa84UKIxkyENxsz2r8DRXL5gAad/0XDqQskcJteR2i66QpfgY57yWuR 9zkYAfvS5SP+jYVRtUq8jvFXZOtvTWaSopPiBi4JOmozUyHxsU4pnCANGQo7OHLUvd1t3R Gg/C1EtFCR5x2ogeJq7EvlwEUAeq0Cbec0ASzbEyzSKCdiROCEk86dTXMrUh+oXhv8QUEI KNN4frzCUO2B8ZR7Ry/6qasZa4mqqDHIZnfF30acZyDi0mTzGlLRsX+QpZcSIA== ARC-Authentication-Results: i=1; rspamd-585d4c99d7-mc2pp; auth=pass smtp.auth=dreamhost smtp.mailfrom=graham@menhennitt.com.au X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|graham@menhennitt.com.au X-MailChannels-Auth-Id: dreamhost X-Stretch-Cellar: 292fc2325133e6ff_1721444111446_3737341756 X-MC-Loop-Signature: 1721444111446:2231433366 X-MC-Ingress-Time: 1721444111446 Received: from pdx1-sub0-mail-a282.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.96.118.42 (trex/7.0.2); Sat, 20 Jul 2024 02:55:11 +0000 Received: from [203.3.73.118] (unknown [118.102.125.251]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: graham@menhennitt.com.au) by pdx1-sub0-mail-a282.dreamhost.com (Postfix) with ESMTPSA id 4WQrkQ3KfmzF0; Fri, 19 Jul 2024 19:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=menhennitt.com.au; s=dreamhost; t=1721444111; bh=7FMB3IVQ/yUUnN6VSGxTqqJbYfjtdOQqyqrYmHC0yt8=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=lLeSQuCwpKAF1TUJHdckZPpK1rcSvHcSgq+QoPlNXbYUwjfh5q4n71xZfkv/dCxTG x0ByphdeAK9yGUyXGV864nfP308oMz6Pyt3TDAIkgNHS6b4XbPgQgdX3TKHmVm9okg s3SiaRSPWVsuiYQ1lEkWPhXTkk3ECQdHA13e+tUBEI1huqQ1qN0wLYt2MSwlei7F4U ADdj2B4wofRGL1uCCaWUn2mKjNYSsn5f5yLhdAzVlXNZXeYLxfABGYe+igmdpm+OKV e9tnXk0ygz+V7pltwvcV0jjPp5xOcd7y+IqLF+obu0tJuZlPhFx6PFUtClyBiVo2JK MZWQU8QjIDWrg== Message-ID: <64be0cf8-b091-4dbb-b4c4-32d6cb2415d2@menhennitt.com.au> Date: Sat, 20 Jul 2024 12:55:07 +1000 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 User-Agent: Mozilla Thunderbird Subject: Re: VirtualBox kmod won't load "module already loaded or in kernel" (SOLVED) To: Greg 'groggy' Lehey Cc: freebsd-ports@freebsd.org References: <03fb09bb-d695-4bec-8c68-0365e3a79497@menhennitt.com.au> Content-Language: en-AU From: Graham Menhennitt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:63213, ipnet:23.83.223.0/24, country:CA] X-Rspamd-Queue-Id: 4WQrkT5ThBz42H2 Indeed! I have built the port and it's now working. It's a pain building as you need kernel source installed and it has lots of dependencies As you say, it's not necessary to build virtualbox-ose to fix it. However, I did need to build that in order to fix https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270900 to get USB working. That's even more of a pain as it depends on lots more things including llvm14. Again, I now have it all working including the USB pass-through. I'll ask on the mailing list for somebody to commit the (one line) fix for that bug. Thanks again, Greg. Graham On 19/07/2024 1:37 pm, 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: >>     # kldload vboxdrv >>     kldload: can't load vboxdrv: module already loaded or in kernel >>     # >> However, neither of those things is true: >>     # kldstat -v|grep -i virtualbox >>     # > 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=Still%20more%20VirtualBox%20fun&article=D-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