Created
April 23, 2023 23:03
-
-
Save gengwg/b5edb81bed1b424715efeac95d9c427a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsmod | grep kvm | |
kvm_intel 335872 0 | |
kvm 1036288 1 kvm_intel | |
irqbypass 16384 1 kvm | |
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
$ chmod +x minikube | |
$ ./minikube version | |
minikube version: v1.24.0 | |
commit: 76b94fb3c4e8ac5062daf70d60cf03ddcc0a741b | |
$ ./minikube start | |
π minikube v1.24.0 on Fedora 34 | |
β¨ Automatically selected the docker driver. Other choices: virtualbox, ssh | |
π Starting control plane node minikube in cluster minikube | |
π Pulling base image ... | |
πΎ Downloading Kubernetes v1.22.3 preload ... | |
$ kubectl run niginx --image=nginx | |
pod/niginx created | |
$ kubectl get po | |
NAME READY STATUS RESTARTS AGE | |
niginx 0/1 ContainerCreating 0 8s | |
$ kubectl get po | |
NAME READY STATUS RESTARTS AGE | |
niginx 1/1 Running 0 17s | |
$ ./minikube stop | |
$ ./minikube start --driver=kvm2 | |
π minikube v1.24.0 on Fedora 34 | |
β Deleting existing cluster minikube with different driver docker due to --delete-on-failure flag set by the user. | |
π’ Exiting due to GUEST_DRIVER_MISMATCH: The existing "minikube" cluster was created using the "docker" driver, which is incompatible with requested "kvm2" driver. | |
π‘ Suggestion: Delete the existing 'minikube' cluster using: 'minikube delete', or start the existing 'minikube' cluster using: 'minikube start --driver=docker' | |
$ ./minikube delete | |
π₯ Deleting "minikube" in docker ... | |
π₯ Deleting container "minikube" ... | |
π₯ Removing /home/gengwg/.minikube/machines/minikube ... | |
π Removed all traces of the "minikube" cluster. | |
$ ./minikube start --driver=kvm2 | |
π minikube v1.24.0 on Fedora 34 | |
β¨ Using the kvm2 driver based on user configuration | |
π€· Exiting due to PROVIDER_KVM2_NOT_FOUND: The 'kvm2' provider was not found: exec: "virsh": executable file not found in $PATH | |
π‘ Suggestion: Install libvirt | |
π Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment