Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crio + docker + wsl2: Module br_netfilter not found in directory /lib/modules/4.19.128-microsoft-standard #9837

Closed
ghost opened this issue Dec 3, 2020 · 6 comments · Fixed by #9932
Labels
co/docker-driver Issues related to kubernetes in container co/runtime/crio CRIO related issues kind/bug Categorizes issue or PR as related to a bug. os/windows priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@ghost
Copy link

ghost commented Dec 3, 2020

Steps to reproduce the issue:

  1. Run minikube start --container-runtime=cri-o
  2. Get modprobe: FATAL: Module br_netfilter not found in directory /lib/modules/4.19.128-microsoft-standard

Full output of failed command:

😄  minikube v1.15.1 on Microsoft Windows 10 Pro 10.0.19041 Build 19041
✨  Automatically selected the docker driver
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
💾  Downloading Kubernetes v1.19.4 preload ...
    > preloaded-images-k8s-v6-v1.19.4-cri-o-overlay-amd64.tar.lz4: 551.20 MiB /
🔥  Creating docker container (CPUs=2, Memory=3885MB) ...

❌  Exiting due to RUNTIME_ENABLE: br_netfilter: sudo modprobe br_netfilter: Process exited with status 1
stdout:

stderr:
modprobe: FATAL: Module br_netfilter not found in directory /lib/modules/4.19.128-microsoft-standard


😿  If the above advice does not help, please let us know:

Full output of minikube start command used:
https://haste.natsumi.dev/luziwocotu

I was trying to run minikube with cri-o as container runtime and docker as driver as I want to prepare for Kubernetes v.1.20 deprecating the docker container runtime.

@ghost
Copy link
Author

ghost commented Dec 3, 2020

Addition: Searching for the error yielded no usable results

@tstromberg tstromberg changed the title cri-o container runtime using minikube on Windows not working crio + docker + wsl2: Module br_netfilter not found in directory /lib/modules/4.19.128-microsoft-standard Dec 9, 2020
@tstromberg
Copy link
Contributor

I suspect the way we check for the kernel module may not be appropriate for your environment (WSL2? not sure). I'll propose an alternate PR for you to try.

@ghost
Copy link
Author

ghost commented Dec 9, 2020

Nope, I'm not using WSL2 (EDIT: at least not to run Minikube). It's running natively on Windows with Docker as host. Docker does have the WSL2 integrated enabled but I don't think that's the cause.

@afbjorklund
Copy link
Collaborator

Kubernetes 1.20 is only deprecating the dockershim, not the docker container runtime.
And it does seem like your Docker is using WSL, but we fail to detect br_netfilter in it...

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container os/windows co/runtime/crio CRIO related issues kind/bug Categorizes issue or PR as related to a bug. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Dec 9, 2020
@ghost
Copy link
Author

ghost commented Dec 9, 2020

Kubernetes 1.20 is only deprecating the dockershim, not the docker container runtime.

I know but (to my knowledge) they will get rid of the dockershim and therefore docker runtime support as early as v1.23 so I want to prepare with using CRI-O.

And it does seem like your Docker is using WSL, but we fail to detect br_netfilter in it...

Right, I forgot that that's a thing, sorry for the confusion.

@tstromberg
Copy link
Contributor

I can confirm that --container-runtime=crio is as broken within WSL2 using master. I'll try to send a PR out for this today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container co/runtime/crio CRIO related issues kind/bug Categorizes issue or PR as related to a bug. os/windows priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants