Skip to content

Instantly share code, notes, and snippets.

@gengwg
Created April 23, 2023 23:03
Show Gist options
  • Save gengwg/b5edb81bed1b424715efeac95d9c427a to your computer and use it in GitHub Desktop.
Save gengwg/b5edb81bed1b424715efeac95d9c427a to your computer and use it in GitHub Desktop.
$ 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