gpt4 book ai didi

kubernetes - minikube:找不到domaintype = kvm的功能

转载 作者:行者123 更新时间:2023-12-02 16:20:59 24 4
gpt4 key购买 nike

为 minikube 安装了什么:

$ ls -al /usr/local/bin/
-rwxr-xr-x 1 root root 26406912 Jun 14 12:05 docker-machine
-rwxrwxr-x 1 me libvirtd 11889064 Jun 14 12:07 docker-machine-driver-kvm
-rwxrwxr-x 1 me me 70232912 Jun 14 11:58 kubectl
-rwxrwxr-x 1 me me 82512696 Jun 14 11:57 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 ')

我是 Kubernetes 新手。知道如何修复它吗?谢谢

更新

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

最佳答案

我的更新已经接近解决方案了。解决方案是在 BIOS 中启用虚拟化。

1、打开电脑电源并打开BIOS。

2、进入安全部分并启用虚拟化。

关于kubernetes - minikube:找不到domaintype = kvm的功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44549951/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com