microsoft / microsoft/WSL

Module zfs not found in /lib/modules/5.15.90

Open
#10,128 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Windows version: 10.0.19045.2846

### WSL Version

WSL version: 1.2.5.0 Kernel version: 5.15.90.1

### Are you using WSL 1 or WSL 2?

- [X] WSL 2
- [ ] WSL 1

### Kernel Version

5.15.90.1

### Distro Version

Ubuntu 22.04(**I use ubuntu-upgrade-commands from 20.04 to 22.04, so my distro shows the system icon `Ubuntu 20.04`**)

### Other Software

_No response_

### Repro Steps

I build and run zfs based on [the doc](https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html#configure-and-build) from zfs.

```sh
cd ./zfs
git checkout master
sh autogen.sh
./configure
make -s -j$(nproc)
```

And I also get the kernel file from the github with the version of 5.15.90.1 and compile it.

### Expected Behavior

None.

### Actual Behavior

Then I exec `modprobe zfs` and it throws the error `modprobe: FATAL: Module zfs not found in directory /lib/modules/5.15.90.1-microsoft-standard-WSL2`.

I see the /lib/modules dir and find that the only dir in it is `5.15.0-72-generic`.
And I get the `extra` dir and the `zfs.ko` file with the same as [make install](https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html#install).

```sh
/usr/src # ls root@DESKTOP-CO31SAO
googletest gtest linux-headers-5.15.0-72 linux-headers-5.15.0-72-generic zfs-2.1.5
/usr/src # cd /lib/modules
/lib/modules # ls
5.15.0-72-generic
/lib/modules # uname -a
Linux DESKTOP-CO31SAO 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```

So it means I only have the `5.15.0-72-generic` dir.

### Diagnostic Logs

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported WSL kernel version from `uname -a` and compare it with the only directory under `/lib/modules`; then review the linked OpenZFS build and install documentation and the reproduced `modprobe zfs` failure. Done means establishing why the built module is not found for the running WSL2 kernel and documenting a reproducible resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.