minikube 启动错误:找不到 domaintype=kvm 的功能

minikube 启动错误:找不到 domaintype=kvm 的功能

minikube 安装的内容:

$ ls -al /usr/local/bin/
-rwxr-xr-x  1 me me 26406912 Jun 15 09:11 docker-machine
-rwxr-xr-x  1 me me 12096944 Jun 14 17:06 docker-machine-driver-kvm
-rwxrwxr-x  1 me me 50359943 Jun 14 15:35 kubectl
-rwxr-xr-x  1 me me 87434272 Jun 14 15:35 minikube

尝试通过 minikube 启动集群

$ minikube start --vm-driver=kvm
Starting local Kubernetes v1.6.4 cluster...
Starting VM...
E0614 12:07:39.515994   14655 start.go:127] 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 ').

 Retrying.
E0614 12:07:39.517076   14655 start.go:133] 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 ')

sudo /usr/sbin/kvm-ok 
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm_intel
INFO: Your CPU supports KVM extensions
INFO: KVM (vmx) is disabled by your BIOS
HINT: Enter your BIOS setup and enable Virtualization Technology (VT),
      and then hard poweroff/poweron your system
KVM acceleration can NOT be used

$ dmesg | grep kvm
[    2.114855] kvm: disabled by bios
[    2.327746] kvm: disabled by bios
[  120.423249] kvm: disabled by bios
[  222.250977] kvm: disabled by bios

我是 Kubernetes 新手。有办法解决吗?谢谢

答案1

根据建议的输出dmesg,解决方案是在 BIOS 中启用可视化。

1、打开电脑并打开 BIOS。

2,转到security部分并启用可视化。

(不同机器可能会有所不同。)

相关内容