kubernetes: Kube init returns a failed to parse kernel config: error
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG
kubeadm version: version.Info{Major:“1”, Minor:“6+”, GitVersion:“v1.6.0-alpha.0.2074+a092d8e0f95f52”, GitCommit:“a092d8e0f95f5200f7ae2cba45c75ab42da36537”, GitTreeState:“clean”, BuildDate:“2016-12-13T17:03:18Z”, GoVersion:“go1.7.4”, Compiler:“gc”, Platform:“linux/amd64”}
Kubernetes version (use kubectl version
):
Client Version: version.Info{Major:“1”, Minor:“5”, GitVersion:“v1.5.2”, GitCommit:“08e099554f3c31f6e6f07b448ab3ed78d0520507”, GitTreeState:“clean”, BuildDate:“2017-01-12T04:57:25Z”, GoVersion:“go1.7.4”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“5”, GitVersion:“v1.5.2”, GitCommit:“08e099554f3c31f6e6f07b448ab3ed78d0520507”, GitTreeState:“clean”, BuildDate:“2017-01-12T04:52:34Z”, GoVersion:“go1.7.4”, Compiler:“gc”, Platform:“linux/amd64”}
Environment:
- Cloud provider or hardware configuration: bare metal/packet.net
- OS (e.g. from /etc/os-release): Ubuntu 16.04
- Kernel (e.g.
uname -a
):kernel version: 4.4.0-47-generic #68 - Install tools: kubeadm
- Others:
What happened:
Setting up Kubernetes on bare metal servers (), and when I initialize the master with kube init
the following error is returned:
failed to parse kernel config: unable to load kernel module "configs": output - "modprobe: FATAL: Module configs not found in directory /lib/modules/4.4.0-47-generic\n", err - exit status 1
Proposed Solution: This is fixed by running:
apt-get install linux-image-$(uname -r)
But maybe the missing mods should be added? @lukemarsden
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (8 by maintainers)
My system is 5.4.47-OPENFANS+20200622-v8 , can’t apt-get install linux-image-$(uname -r) ,how to solve it
It’s showing me an older version of the kernel:
I wondered about this. As mentioned I had update the kernel manually with
apt-get install linux-image-$(uname -r)
does the kernel need to be:
config-4.4.0-62-generic
?