-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to start minikube on centos 7 hosted on oracle virtualbox 6.1 using KVM/Libvirt, virtualbox & docker for virtualization #8701
Comments
I've just installed VirtualBox too and tried starting minikube with it: first time my system just crashed & was hang for a long time
#######
stderr: stderr:
stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr:
stderr: stderr:
I0712 04:51:51.339124 2915 cli_runner.go:109] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0712 04:51:51.472568 2915 main.go:115] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:59938->127.0.0.1:32775: read: connection reset by peer stderr:
} } } [jenkins@olivier-linux-server kubernetes]$ sudo systemctl stop firewalld [jenkins@olivier-linux-server kubernetes]$ minikube start --alsologtostderr
stderr: stderr:
stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: stderr: I0712 05:30:45.082400 2440 cli_runner.go:109] Run: docker rm -f -v minikube
stderr: I0712 05:31:15.731162 2440 cli_runner.go:151] Completed: docker run --rm --entrypoint /usr/bin/tar -v /home/jenkins/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v4-v1.18.3-docker-overlay2-amd64.tar.lz4:/preloaded.tar:ro -v minikube:/extractDir gcr.io/k8s-minikube/kicbase:v0.0.10@sha256:f58e0c4662bac8a9b5dda7984b185bad8502ade5d9fa364bf2755d636ab51438 -I lz4 -xvf /preloaded.tar -C /extractDir: (7m28.091662977s) stderr: I0712 05:31:21.375840 2440 cli_runner.go:109] Run: docker container inspect minikube --format={{.State.Status}} stderr: I0712 05:31:24.525067 2440 cli_runner.go:109] Run: docker container inspect minikube --format={{.State.Status}} stderr: I0712 05:31:27.646393 2440 cli_runner.go:109] Run: docker container inspect minikube --format={{.State.Status}} stderr: I0712 05:31:30.782306 2440 cli_runner.go:109] Run: docker container inspect minikube --format={{.State.Status}} stderr: I0712 05:31:33.975469 2440 cli_runner.go:109] Run: docker container inspect minikube --format={{.State.Status}} stderr: I0712 05:31:37.124251 2440 cli_runner.go:109] Run: docker container inspect minikube --format={{.State.Status}} stderr: I0712 05:31:40.284291 2440 cli_runner.go:151] Completed: docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume minikube:/var --security-opt apparmor=unconfined --cpus=2 --memory=2200mb -e container=docker --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 gcr.io/k8s-minikube/kicbase:v0.0.10@sha256:f58e0c4662bac8a9b5dda7984b185bad8502ade5d9fa364bf2755d636ab51438: (7m52.080008061s)
X error provisioning host: Failed to start host: recreate: creating host: create: waiting: Maximum number of retries (60) exceeded
########## [jenkins@olivier-linux-server kubernetes]$ minikube start --vm-driver=virtualbox --alsologtostderr
} } }
} } } #######
X error provisioning host: Failed to start host: provision: Error getting config for native Go SSH: open /home/jenkins/.minikube/machines/minikube/id_rsa: no such file or directory
[jenkins@olivier-linux-server ~]$ groups [jenkins@olivier-linux-server ~]$ docker run hello-world Hello from Docker! [jenkins@olivier-linux-server ~]$ VBoxManage showvminfo minikube | grep NIC |
3rd attempt: [jenkins@olivier-linux-server kubernetes]$ minikube start
stderr:
stderr: ! Startup with docker driver failed, trying with alternate driver virtualbox: Failed to start host: recreate: creating host: create: creating: create kic node: create container: docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume minikube:/var --security-opt apparmor=unconfined --cpus=2 --memory=2200mb -e container=docker --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 gcr.io/k8s-minikube/kicbase:v0.0.10@sha256:f58e0c4662bac8a9b5dda7984b185bad8502ade5d9fa364bf2755d636ab51438: exit status 125 stderr:
X error provisioning host: Failed to start host: recreate: creating host: create: creating: create kic node: create container: docker run -d -t --propt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigl name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume minikube:/var --securityined --cpus=2 --memory=2200mb -e container=docker --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publisr.io/k8s-minikube/kicbase:v0.0.10@sha256:f58e0c4662bac8a9b5dda7984b185bad8502ade5d9fa364bf2755d636ab51438: exit status 125 stderr:
|
for starters firewalld must never be disabled or reloaded (when minikube/kubernetes is running) |
ok thats been re-enabled |
Now delete your minikube instance, reboot, redeploy minikube. The reason for this is if you run I'm about to redeploy |
oups sorry just seeing this, i have no idea why i dont get any notifications from this thread |
Hey @olivierots & @mazzystr were you able to find a solution for this? |
Hi Priya, not yet im afriad, im still waiting for a solution from you guys |
any update please ? |
Hey @olivierots you can run minikube from a VM, it just may require some additional work. On a Linux VM, if you have docker installed you may be able to run Does that answer your question? More info about these options can be found in our docs: https://minikube.sigs.k8s.io/docs/drivers/ |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Steps to reproduce the issue:
I'm using a centos VM hosted on oracle virtual box 6.1 (latest version)
I've installed Kubernetes & kvm using the below procedure & also enabled nested virtualization etc. (it hasnt worked)
I tried using VirtualBox instead and it still does not work
minikube v1.12.0 on Centos 7.8.2003
Docker version 19.03.12, build 48a66213fe
[jenkins@olivier-linux-server kubernetes]$ VBoxManage —version
Oracle VM VirtualBox Command Line Management Interface Version 6.1.10
[jenkins@olivier-linux-server kubernetes]$ libvirtd --version
libvirtd (libvirt) 4.5.0
Full output of failed command:
#############
[jenkins@olivier-linux-server kubernetes]$ grep -E --color 'vmx|svm' /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm invpcid_single tpr_shadow flexpriority fsgsbase avx2 invpcid flush_l1d
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm invpcid_single tpr_shadow flexpriority fsgsbase avx2 invpcid flush_l1d
#########
[jenkins@olivier-linux-server kubernetes]$ sestatus
SELinux status: disabled
########
[jenkins@olivier-linux-server kubernetes]$ cat ~/.minikube/machines/minikube/config.json | grep -i 'DriverName|docker'
"SSHUser": "docker",
"Boot2DockerURL": "file:///home/jenkins/.minikube/cache/iso/minikube-v1.12.0.iso",
"ISO": "/home/jenkins/.minikube/machines/minikube/boot2docker.iso",
"DriverName": "kvm2",
"InstallURL": "https://get.docker.com"
########
[jenkins@olivier-linux-server kubernetes]$ minikube status
minikube
type: Control Plane
host: Stopped
kubelet: Stopped
apiserver: Stopped
kubeconfig: Stopped
####### tried again with the below but it crashes my VM
[jenkins@olivier-linux-server kubernetes]$ minikube start --vm-driver=kvm2
#############
workaround i've already tried the below workaround
I do not have any VPN running on my machine
rm -rf ~/.minikube
minikube delete
minikube delete --all purge
i've already numerous days trying to debug this but i failed
your help will be much appreciated
many thanks
Olivier
#############################################
The text was updated successfully, but these errors were encountered: