Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2023 14:33:17 -0500
From:      Sean McBride <sean@rogue-research.com>
To:        Denis Kirjanov <kirjanov@gmail.com>
Cc:        virtualization@freebsd.org
Subject:   Re: building bhyve from source
Message-ID:  <40E6D39C-CFA5-4FCA-A024-8DD719106DE9@rogue-research.com>
In-Reply-To: <CAHj3AVkkT0Q4HUhuZPQbkLTR335%2Bdgm%2Bf7MGvwFQqWkqbhvckA@mail.gmail.com>
References:  <FF71EFA9-39F9-4E29-A6E9-4BDBE5B41A55@rogue-research.com> <CAHj3AVkkT0Q4HUhuZPQbkLTR335%2Bdgm%2Bf7MGvwFQqWkqbhvckA@mail.gmail.com>

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

[-- Attachment #1 --]
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

[-- Attachment #2 --]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">On 12 Dec 2023, at 14:08, Denis Kirjanov wrote:</p>
</div><div class="plaintext" style="white-space: normal;"><blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;"><p dir="auto">The patch mentions only the kernel, so you have to rebuild the vmm module</p>
</blockquote></div>
<div class="markdown" style="white-space: normal;">
<p dir="auto">That's a nice simplification, thanks!</p>
<p dir="auto">So I've replaced <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">/boot/kernel/vmm.ko</code> with the one I built, and rebooted.  Alas it doesn't seem to load.  I see in /var/run/dmesg.boot:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">KLD vmm.ko: depends on kernel - not available or version mismatch
linker_load_file: /boot/kernel/vmm.ko - unsupported file type
</code></pre>
<p dir="auto">Must the FreeBSD version of the machine doing the compiling exactly match the FreeBSD version of TrueNAS?</p>
<p dir="auto">I complied on a 13.2-RELEASE-p7 machine, but TrueNAS is still 13.1-RELEASE-p9.</p>
<p dir="auto">Cheers,</p>
<p dir="auto">Sean</p>

</div>
</div>
</body>

</html>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40E6D39C-CFA5-4FCA-A024-8DD719106DE9>