minikube: running minikube on a external harddisk with noexec: 'kubeadm': Permission denied
Hey guys.
Iβm trying to launch Minikube using docker drive, but Iβm facing some permission issues.
Here are my logs:
~ took 5s
β― minikube start
π minikube v1.10.1 on Arch 20.0.1
βͺ MINIKUBE_HOME=/mnt/hdd0/home/odelucca
β¨ Using the docker driver based on existing profile
π Starting control plane node minikube in cluster minikube
π Updating the running docker "minikube" container ...
π³ Preparing Kubernetes v1.18.2 on Docker 19.03.2 ...
βͺ kubeadm.pod-network-cidr=10.244.0.0/16
π₯ initialization failed, will try again: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.2:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap,SystemVerification,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables": Process exited with status 126
stdout:
stderr:
env: 'kubeadm': Permission denied
β This container is having trouble accessing https://k8s.gcr.io
π‘ To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
π£ Error starting cluster: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.2:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap,SystemVerification,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables": Process exited with status 126
stdout:
stderr:
env: 'kubeadm': Permission denied
πΏ minikube is exiting due to an error. If the above message is not useful, open an issue:
π https://github.com/kubernetes/minikube/issues/new/choose
π£ failed to start node: startup failed: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.2:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap,SystemVerification,FileContent--proc-sys-net-bridge-bridge-nf-call-iptables": Process exited with status 126
stdout:
stderr:
env: 'kubeadm': Permission denied
πΏ minikube is exiting due to an error. If the above message is not useful, open an issue:
π https://github.com/kubernetes/minikube/issues/new/choose
Also, I canβt run it as sudo since it says that I should not run docker Driver as sudo.
Obs: My Docker is already available for my user. I can create any Docker container without the need to sudo it.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 27 (4 by maintainers)
@odelucca here is the link to the binary from a PR that will provide a better solution message http://storage.googleapis.com/minikube-builds/8597/minikube-linux-amd64
https://github.com/kubernetes/minikube/pull/8597
@medyagh sure! Here is a quick overview on the issue and how Iβve fixed:
Iβve the following hard-drive setup:
Iβve moved both my Docker and Minikube to my HDD, mounted at
/mnt/hdd0. I forgot to add anyexecflags in it, and by default it was receiving anoexecflag.I discovered that when I ran the
mountcommand:After that, Iβve just changed my
/etc/fstabto addexecon the mount flags:Now, the HDD is mounted with
execflag and can execute binaries π