1

I was trying out Kubernetes using minikube in a VM host using KVM as VM Driver.But it looks like I cannot use KVM on a vm host as virtualization will not be enabled on a VM host.

 $ egrep -c '(vmx|svm)' /proc/cpuinfo
 0

minikube start is failing with the below error

$ minikube start --vm-driver=kvm
Starting local Kubernetes v1.8.0 cluster...
Starting VM...
Downloading Minikube ISO
140.01 MB / 140.01 MB [============================================]    
100.00% 0s
E1108 02:38:25.792900   17062 start.go:150] Error starting host: Error  creating host: Error creating machine: Error in driver during machine creation: virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for domaintype=kvm ').

Any suggestions how to proceed on a VM host

Zama Ques
  • 1,497
  • 5
  • 26
  • 45

4 Answers4

2

My advice would be to use --vm-driver=none. This will install all minikube binaries in host machine. While not all features are available, it should be enough for doing some testing.

Javier Salmeron
  • 8,365
  • 2
  • 28
  • 23
  • Was there any special configuration options need to make minkube launch via this method besides `--vm-driver=none`. – Mona Wade Feb 18 '19 at 18:17
0

See info about enabling nested virtualization: https://fedoraproject.org/wiki/How_to_enable_nested_virtualization_in_KVM

Robert Kratky
  • 542
  • 3
  • 14
0

open another terminal and check that swap is disabled swapoff -a then it will succeed

Ahmed Badawy
  • 421
  • 4
  • 13