can't start minikube in ec2 shows "X Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path"

4/15/2020

Hi I am trying to start minikube that's why I ran

minikube start --vm-driver=none

But it shows in the console the below lines:

minikube v1.9.2 on Amazon 2 (Xen/amd64) Using the none driver based on user configuration X Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path

Note that i have installed kubectl minikube and docker.

Please help me to sort out this issues.

-- Mir IT
amazon-ec2
amazon-web-services
kubectl
kubernetes
minikube

4 Answers

5/14/2020

If your running ubuntu, make sure you systemd and kubeadm already installed. I found that this resolved for me

sudo apt-get update && sudo apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
at <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl

Reference Links:

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install- https://minikube.sigs.k8s.io/docs/drivers/none/

-- Jr Phillips
Source: StackOverflow

4/16/2020

TL;DR : update minkikube

You need minkikube not older than v1.9.0-beta

It's a known issue

There is a known issue #7179 reproduced in 1.18

Fixed in Pull Request #7180, the latest commit is 1273d4f:

install conntrack for github action integration tests #7180

Minimal minikube ver that contain commit 1273d4f is v1.9.0-beta:

git clone https://github.com/kubernetes/minikube/
cd minikube
git describe 1273d4f8e756ac5eca89d94c449450fb2da21a5a
>v1.9.0-beta.2-16-g1273d4f8e

Explanation of git describe

Explanation of git describe is here

The command is useful for cases such as:

  • which tag is closest to the commit? (git describe <sha>)
  • which tag contains commit? (git describe <sha> --contains)
  • which branch or annotated tag is closest to the commit? (git describe <sha>--all)
-- Yasen
Source: StackOverflow

5/11/2020

Execute following commands

yum install conntrack start minikube as root start --driver=none

-- Suren Raju
Source: StackOverflow

5/12/2020

I had the same issue. Install 'conntrack' with

sudo apt install conntrack

Then continue to start your minikube:

sudo minikube start --vm-driver=none
-- A'Joel Udu
Source: StackOverflow