16

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.

Yasen
  • 4,241
  • 1
  • 16
  • 25
megh
  • 171
  • 1
  • 1
  • 10

8 Answers8

24

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
  • 340
  • 1
  • 4
7

Execute following commands

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

Suren Raju
  • 3,012
  • 6
  • 26
  • 48
4

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
  • 4,241
  • 1
  • 16
  • 25
2

On CentOS 7, run following command:

yum install conntrack

And don't forget to have at least 2 (v)CPUs

Jean-Marc Amon
  • 969
  • 13
  • 16
2

You need to install conntrack:

apt-get install conntrack -y

and then you can run the minikube start command again

minikube start --vm-driver=none

make sure you do it as a root user or prefix sudo.

0

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/

Jason Phillips
  • 345
  • 1
  • 6
0

I use the following command to resolve the issue:

minikube start --vm-driver=docker
d1sh4
  • 1,710
  • 5
  • 21
0

In case you are running on Azure or AWS, use

minikube start --force

instead of

minikube start --vm-driver=none
d1sh4
  • 1,710
  • 5
  • 21