在 ubuntu 20.04 上无法使用 virtualbox 驱动启动 minikube

问题描述 投票:0回答:3

我正在尝试使用命令“minikube start --vm-driver=virtualbox”启动minikube。在我安装 VirtualBox 6.1.18 for Linux(ubuntu 20.04) 之前。但是当我运行启动命令时,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
docker kubernetes ubuntu-20.04
3个回答
3
投票

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


1
投票

通常您只需进入 BIOS 设置并启用安全虚拟机模式

就像你说的那样。我必须进入主板BIOS的高级配置并启用安全虚拟机模式。

谢谢


0
投票

在 Admin powerShell 中运行命令

minikube delete
Minikube start
© www.soinside.com 2019 - 2024. All rights reserved.