devops 求助,k8s 安装 minikube start 报错 virError (Code=8, Domain=44, Message='invalid argument: could not find capabilities for domaintype=kvm ')

pan · 2019年04月17日 · 最后由 孙高飞 回复于 2019年04月18日 · 1952 次阅读

minikube start --vm-driver kvm2

😄 minikube v1.0.0 on linux (amd64)
🤹 Downloading Kubernetes v1.14.0 images in the background ...
🔥 Creating kvm2 VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous
2019/04/17 17:18:48 No matching credentials were found, falling back on anonymous

💣 Unable to start VM: create: Error creating machine: Error in driver during machine creation: creating domain: Error defining domain xml:

<domain type='kvm'>
  <name>minikube</name>
  <memory unit='MB'>2048</memory>
  <vcpu>2</vcpu>
  <features>
    <acpi/>
    <apic/>
    <pae/>

  </features>
  <cpu mode='host-passthrough'/>
  <os>
    <type>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <devices>
    <disk type='file' device='cdrom'>
      <source file='/root/.minikube/machines/minikube/boot2docker.iso'/>
      <target dev='hdc' bus='scsi'/>
      <readonly/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='default' io='threads' />
      <source file='/root/.minikube/machines/minikube/minikube.rawdisk'/>
      <target dev='hda' bus='virtio'/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='d0:8b:f5:d7:dc:85'/>
      <model type='virtio'/>
    </interface>
    <interface type='network'>
      <source network='minikube-net'/>
      <mac address='a8:6c:7b:55:f6:b7'/>
      <model type='virtio'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <rng model='virtio'>
      <backend model='random'>/dev/random</backend>
    </rng>

  </devices>
</domain>

: virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for domaintype=kvm ')

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new

共收到 3 条回复 时间 点赞

没用过 minikube。。。。为啥不直接正式安装。 用这个玩具呢。。。

pan #2 · 2019年04月17日 Author
孙高飞 回复

作死了。。。之前看过你的文章,当时忘记收藏了-。- 我看官网搭的,然后一直报错😂 感谢回答,让我找到了你的文章😂 😂 谢谢大佬

pan 回复

其实现在 kubeadmin 已经比我写文章那会好用多了~~~ 我写的时候还是阿尔法版本, 现在应该已经正式 release 了。 用那玩意装 k8s 还是挺简单的

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册