首页 > 解决方案 > 无法在 ubuntu 20.04 上使用 virtualbox 驱动程序启动 minikube

问题描述

我正在尝试使用命令“minikube start --vm-driver=virtualbox”启动 minikube。在我安装适用于 Linux(ubuntu 20.04)的 VirtualBox 6.1.18 之前。但是当我运行启动命令时,shell 会抛出一个错误。谁能帮我

非常感谢!!!

 StartHost failed, but will try again: creating host: create: creating: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.173843 Power up failed (vrc=VERR_SVM_DISABLED, rc=NS_ERROR_FAILURE (0X80004005))
  Creating virtualbox VM (CPUs=2, Memory=3900MB, Disk=20000MB) ...
  Failed to start virtualbox VM. Running "minikube delete" may fix it: creating host: create: creating: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.172445 Power up failed (vrc=VERR_SVM_DISABLED, rc=NS_ERROR_FAILURE (0X80004005))

❌  Exiting due to HOST_SVM_DISABLED: Failed to start host: creating host: create: creating: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.172445 Power up failed (vrc=VERR_SVM_DISABLED, rc=NS_ERROR_FAILURE (0X80004005))
  Suggestion: Your host does not support virtualization. If you are running minikube within a VM, try '--driver=docker'. Otherwise, enable virtualization in your BIOS
  Related issue: https://github.com/kubernetes/minikube/issues/7074

标签: dockerkubernetes

解决方案


这通常是由于在您的机器的 bios 中禁用了虚拟化并且不允许 VirtualBox 正常启动。通常您只需要输入您的 BIOS 设置并启用安全虚拟机模式
有关详细信息,请查看此帖子https://appuals.com/fix-amd-v-is-disabled-in-the-bios-verr_svm_disabled/


推荐阅读