Error while installing minikube on Ubuntu

0 votes

Hey I'm trying to install minikube on ubuntu and I ended up with this error

$ minikube start

There is a newer version of minikube available (v0.34.1).  Download it here:

https://github.com/kubernetes/minikube/releases/tag/v0.34.1


To disable this notification, run the following:

minikube config set WantUpdateNotification false

Starting local Kubernetes v1.10.0 cluster...

Starting VM...

Downloading Minikube ISO

 160.27 MB / 160.27 MB [============================================] 100.00% 0s

E0222 15:14:23.596076    8948 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks.

: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory.


 Retrying.

E0222 15:14:23.598146    8948 start.go:180] Error starting host:  Error creating host: Error executing step: Running precreate checks.

: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory

================================================================================

An error has occurred. Would you like to opt in to sending anonymized crash

information to minikube to help prevent future errors?

To opt out of these messages, run the command:

minikube config set WantReportErrorPrompt false

================================================================================
Feb 22, 2019 in Kubernetes by Layla
3,001 views

1 answer to this question.

0 votes

Hey @Layla, Try running minikube without the nested virtualization. Use the following command for the same and let me know if it works.

minikube start --vm-driver=none
answered Feb 22, 2019 by Kyraa

I tried that, I got another error:

$ minikube start --vm-driver=none

Starting local Kubernetes v1.10.0 cluster...

Starting VM...

Getting VM IP address...

Moving files into cluster...

Downloading kubeadm v1.10.0

Downloading kubelet v1.10.0

Finished Downloading kubeadm v1.10.0

Finished Downloading kubelet v1.10.0

E0222 15:20:27.778624    8991 start.go:258] Error updating cluster:  downloading binaries: transferring kubeadm file: &{BaseAsset:{data:[] reader:0xc42000e130 Length:0 AssetName:/home/edureka/.minikube/cache/v1.10.0/kubeadm TargetDir:/usr/bin TargetName:kubeadm Permissions:0641}}: error creating file at /usr/bin/kubeadm: open /usr/bin/kubeadm: permission denied

================================================================================

An error has occurred. Would you like to opt in to sending anonymized crash

information to minikube to help prevent future errors?

To opt out of these messages, run the command:

minikube config set WantReportErrorPrompt false

================================================================================

Please enter your response [Y/n]: 

Since it said Permission denied, I tried the same command with sudo.

sudo minikube start --vm-driver=none

Starting local Kubernetes v1.10.0 cluster...

Starting VM...

Getting VM IP address...

Moving files into cluster...

Setting up certs...

Connecting to cluster...

Setting up kubeconfig...

Starting cluster components...

E0222 15:23:10.407716    9003 start.go:300] Error starting cluster:  kubeadm init error 

sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&

sudo /usr/bin/kubeadm alpha phase addon kube-dns

 running command: : running command: 

sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&

sudo /usr/bin/kubeadm alpha phase addon kube-dns


 output: [init] Using Kubernetes version: v1.10.0

[init] Using Authorization modes: [Node RBAC]

[preflight] Running pre-flight checks.

[preflight] The system verification failed. Printing the output from the verification:

KERNEL_VERSION: 4.13.0-46-generic

CONFIG_NAMESPACES: enabled

CONFIG_NET_NS: enabled

CONFIG_PID_NS: enabled

CONFIG_IPC_NS: enabled

CONFIG_UTS_NS: enabled

CONFIG_CGROUPS: enabled

CONFIG_CGROUP_CPUACCT: enabled

CONFIG_CGROUP_DEVICE: enabled

CONFIG_CGROUP_FREEZER: enabled

CONFIG_CGROUP_SCHED: enabled

CONFIG_CPUSETS: enabled

CONFIG_MEMCG: enabled

CONFIG_INET: enabled

CONFIG_EXT4_FS: enabled

CONFIG_PROC_FS: enabled

CONFIG_NETFILTER_XT_TARGET_REDIRECT: enabled (as module)

CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled (as module)

CONFIG_OVERLAY_FS: enabled (as module)

CONFIG_AUFS_FS: enabled (as module)

CONFIG_BLK_DEV_DM: enabled

DOCKER_VERSION: 18.09.2

OS: Linux

CGROUPS_CPU: enabled

CGROUPS_CPUACCT: enabled

CGROUPS_CPUSET: enabled

CGROUPS_DEVICES: enabled

CGROUPS_FREEZER: enabled

CGROUPS_MEMORY: enabled

[WARNING Hostname]: hostname "minikube" could not be reached

[WARNING Hostname]: hostname "minikube" lookup minikube on 127.0.0.53:53: read udp 127.0.0.1:33351->127.0.0.53:53: i/o timeout

[WARNING Swap]: running with swap on is not supported. Please disable swap

[WARNING FileExisting-ebtables]: ebtables not found in system path

[WARNING FileExisting-ethtool]: ethtool not found in system path

[WARNING FileExisting-socat]: socat not found in system path

[WARNING FileExisting-crictl]: crictl not found in system path

Suggestion: go get github.com/kubernetes-incubator/cri-tools/cmd/crictl

Flag --admission-control has been deprecated, Use --enable-admission-plugins or --disable-admission-plugins instead. Will be removed in a future version.

[preflight] Some fatal errors occurred:

[ERROR SystemVerification]: unsupported docker version: 18.09.2

[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`

: running command: 

sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&

sudo /usr/bin/kubeadm alpha phase addon kube-dns


.: exit status 2

================================================================================

An error has occurred. Would you like to opt in to sending anonymized crash

information to minikube to help prevent future errors?

To opt out of these messages, run the command:

minikube config set WantReportErrorPrompt false

================================================================================

Please enter your response [Y/n]: 

y

E0222 15:23:13.778457    9003 util.go:151] Error uploading error message: Error sending error report to https://clouderrorreporting.googleapis.com/v1beta1/projects/k8s-minikube/events:report?key=AIzaSyACUwzG0dEPcl-eOgpDKnyKoUFgHdfoFuA, got response code 400

Try running the same with ignore preflight errors as most of these are warnings. 

sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&

sudo /usr/bin/kubeadm alpha phase addon kube-dn

Related Questions In Kubernetes

0 votes
2 answers

Error while installing curl on ubuntu

This might help https://www.edureka.co/community/18638/resource-tempo ...READ MORE

answered Nov 23, 2018 in Kubernetes by Harsha
1,494 views
0 votes
2 answers

Error while installing MiniKube

Check if it's properly enabled for the ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 52,350 points
1,527 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,477 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP