From nobody Tue Dec 12 19:33:17 2023 X-Original-To: virtualization@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 4SqTL80KQBz54LCy for ; Tue, 12 Dec 2023 19:33:20 +0000 (UTC) (envelope-from sean@rogue-research.com) Received: from mail.rogue-research.com (mail.rogue-research.com [207.115.102.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.rogue-research.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SqTL75qsNz3fKk for ; Tue, 12 Dec 2023 19:33:19 +0000 (UTC) (envelope-from sean@rogue-research.com) Authentication-Results: mx1.freebsd.org; none Received: from localhost (localhost [127.0.0.1]) by mail.rogue-research.com (Postfix) with ESMTP id 5D772F6991FF; Tue, 12 Dec 2023 14:33:19 -0500 (EST) X-Virus-Scanned: amavisd-new at rogue-research.com Received: from mail.rogue-research.com ([127.0.0.1]) by localhost (kingu.rogue-research.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vh9aJHrcl82C; Tue, 12 Dec 2023 14:33:18 -0500 (EST) Received: from [10.29.19.119] (hobgoblin.rogue-research.com [10.29.19.119]) by mail.rogue-research.com (Postfix) with ESMTPSA id 5FA87F6991E8; Tue, 12 Dec 2023 14:33:18 -0500 (EST) From: Sean McBride To: Denis Kirjanov Cc: virtualization@freebsd.org Subject: Re: building bhyve from source Date: Tue, 12 Dec 2023 14:33:17 -0500 X-Mailer: MailMate (1.14r5937) Message-ID: <40E6D39C-CFA5-4FCA-A024-8DD719106DE9@rogue-research.com> In-Reply-To: References: List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_1D3A28F1-E169-4008-87B4-BDD30789385E_=" 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:11478, ipnet:207.115.96.0/20, country:CA] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SqTL75qsNz3fKk --=_MailMate_1D3A28F1-E169-4008-87B4-BDD30789385E_= Content-Type: text/plain; format=flowed On 12 Dec 2023, at 14:08, Denis Kirjanov wrote: > The patch mentions only the kernel, so you have to rebuild the vmm > module That's a nice simplification, thanks! So I've replaced `/boot/kernel/vmm.ko` with the one I built, and rebooted. Alas it doesn't seem to load. I see in /var/run/dmesg.boot: ``` KLD vmm.ko: depends on kernel - not available or version mismatch linker_load_file: /boot/kernel/vmm.ko - unsupported file type ``` Must the FreeBSD version of the machine doing the compiling exactly match the FreeBSD version of TrueNAS? I complied on a 13.2-RELEASE-p7 machine, but TrueNAS is still 13.1-RELEASE-p9. Cheers, Sean --=_MailMate_1D3A28F1-E169-4008-87B4-BDD30789385E_= Content-Type: text/html Content-Transfer-Encoding: quoted-printable

On 12 Dec 2023, at 14:08, Denis Kirjanov wrote:

The patch mentions only the kernel,= so you have to rebuild the vmm module

That's a nice simplification, thanks!

So I've replaced /boot/kernel/vmm= =2Eko with the one I built, and rebooted. Alas it doesn't seem to= load. I see in /var/run/dmesg.boot:

KLD vmm.ko: depends on kernel - not avai=
lable or version mismatch
linker_load_file: /boot/kernel/vmm.ko - unsupported file type

Must the FreeBSD version of the machine doing the compili= ng exactly match the FreeBSD version of TrueNAS?

I complied on a 13.2-RELEASE-p7 machine, but TrueNAS is s= till 13.1-RELEASE-p9.

Cheers,

Sean

--=_MailMate_1D3A28F1-E169-4008-87B4-BDD30789385E_=--