【问题标题】:Minikube start issue on AWS EC2 ubuntu bionicAWS EC2 ubuntu 仿生上的 Minikube 启动问题
【发布时间】:2020-07-21 10:30:07
【问题描述】:

我已经启动了 AWS EC2 实例。 使用 Putty 客户端登录到实例。 下面是我在 EC2 实例(即 Ubuntu 18.04)上尝试的所有命令。 EC2的详细配置如下

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

我已经安装了 docker 和 virtualbox

~$ docker --version
Docker version 19.03.8, build afacb8b7f0

$ dpkg -l | grep 'virtualbox'
ii  virtualbox-5.2                       5.2.30-130521~Ubuntu~bionic                 amd64        Oracle VM VirtualBox

$ lscpu | grep Virtualization
Virtualization type: full

我尝试启动 minikube。

$ minikube start
* minikube 1.9.2 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.9.2
* To disable this notice, run: 'minikube config set WantUpdateNotification false'

! minikube v1.9.0 on Ubuntu 18.04
* Using the virtualbox driver based on existing profile
* Creating virtualbox VM (CPUs=2, Memory=1993MB, Disk=20000MB) ...
! StartHost failed, but will try again: creating host: create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
* Creating virtualbox VM (CPUs=2, Memory=1993MB, Disk=20000MB) ...
* StartHost failed again: creating host: create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
  - Run: "minikube delete", then "minikube start --alsologtostderr -v=1" to try again with more logging
*
E0408 16:46:12.812503    5285 style.go:173] unable to parse "X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible\n": template: X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible
:1: malformed character constant: 'minikube delete' - returning raw string.
X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible
* Error: [VBOX_VTX_DISABLED] creating host: create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
* Suggestion: Virtualization support is disabled on your computer. If you are running minikube within a VM, try '--driver=none'. Otherwise, consult your systems BIOS manual for how to enable virtualization.
* Related issues:
  - https://github.com/kubernetes/minikube/issues/3900
  - https://github.com/kubernetes/minikube/issues/4730

根据错误信息,我也尝试了以下命令:

$ minikube start --no-vtx-check
* minikube v1.9.0 on Ubuntu 18.04
* Automatically selected the virtualbox driver
* Creating virtualbox VM (CPUs=2, Memory=1993MB, Disk=20000MB) ...
! 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: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.455234 Power up failed (vrc=VERR_VMX_NO_VMX, rc=NS_ERROR_FAILURE (0X80004005))
* Deleting "minikube" in virtualbox ...
* Creating virtualbox VM (CPUs=2, Memory=1993MB, Disk=20000MB) ...
* StartHost failed again: creating host: create: creating: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.270050 Power up failed (vrc=VERR_VMX_NO_VMX, rc=NS_ERROR_FAILURE (0X80004005))
  - Run: "minikube delete", then "minikube start --alsologtostderr -v=1" to try again with more logging
*
E0408 16:52:12.324862    5411 style.go:173] unable to parse "X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible\n": template: X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible
:1: malformed character constant: 'minikube delete' - returning raw string.
X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible
* Error: [VBOX_VERR_VMX_NO_VMX] creating host: create: creating: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

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

我去了错误日志中指定的所有 jira,但没有用。其中大多数都没有谈论 Amazon EC2 ubuntu 18.04 中的问题。

问题: 如何在登录到 ubuntu 18.04 的 EC2 实例的 BIOS 中启用 VT-X/AMD-v?有什么命令我可以试试吗?注意:我无权访问 AWS EC2 实例 GUI。

AWS EC2 Ubuntu 18 实例是否与 virtualbox 5 或 6 兼容以启动 minikube?

【问题讨论】:

    标签: amazon-ec2 kubernetes virtualbox ubuntu-18.04 minikube


    【解决方案1】:

    问题:如何在 ubuntu 18.04 登录的 EC2 实例中的 BIOS 中启用 VT-X/AMD-v?有什么我可以尝试的命令吗?注意:我无权访问 AWS EC2 实例 GUI。

    你不知道,EC2 是一个虚拟服务器,你无权访问 BIOS。

    要在 EC2 上使用 Minikube,您需要在没有 vm 驱动程序的情况下启动它,因此只需执行 $ minikube start --vm-driver=none。如果您坚持使用 Minikube,则描述为 here

    我建议不要安装 Minikube,而是使用 kubeadm 并设置 single control-plane cluster with kubeadm

    【讨论】:

    猜你喜欢
    • 2020-04-28
    • 2020-04-10
    • 2017-09-08
    • 2021-12-01
    • 1970-01-01
    • 2018-06-21
    • 1970-01-01
    • 2019-10-08
    • 2014-11-04
    相关资源
    最近更新 更多