【问题标题】:Starting Minishift VM ..... FAIL E1210 : "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"启动 Minishift VM ..... FAIL E1210:“这台计算机没有启用 VT-X/AMD-v。必须在 BIOS 中启用它”
【发布时间】:2021-03-21 01:21:58
【问题描述】:

我试图在本地笔记本电脑上安装 minishift。 作为该过程的一部分,我按照以下所述步骤进行操作。

https://docs.okd.io/3.11/minishift/getting-started/preparing-to-install.html

  1. 设置您的虚拟化环境
  2. 从 Minishift 版本页面下载适用于您的操作系统的 Minishift 软件
  3. 安装 Minishift
  4. 启动 Minishift
  5. 配置 Minishift 以便您高效使用它

我确实安装了 VirtualBox (6.1.16) 作为虚拟化的一部分。并禁用了 Hyper-v 和 Windows Hypervisor 平台(Windows 程序功能开/关)。但是在通过在 PATH 环境变量下配置它来下载和安装 minishift 之后。我从命令提示符运行以下命令 - minishift start

-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.11.0' is supported ... OK
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK
-- Checking if VirtualBox is installed ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'virtualbox' hypervisor ...
-- Minishift VM will be configured with ...
   Memory:    4 GB
   vCPUs :    2
   Disk size: 20 GB
-- Starting Minishift VM ..... FAIL E1210 00:01:26.829916    9000 start.go:499] Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying.
Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"

我验证了 VT-x/AMD-v 的 BIOS 设置,它已经启用,所以我想知道为什么它仍然抛出这个错误 -

这台电脑没有启用 VT-X/AMD-v。必须在 BIOS 中启用它

【问题讨论】:

    标签: okd minishift


    【解决方案1】:

    在这里回答我的问题-

    我卸载了现有的虚拟机并设法从 Windows 管理程序选项(Hyper-v 管理器)运行 minishift。我调整了我的应用程序进程(以控制 RAM 使用)并使用可用的 4GB RAM(我的机器总共 8 GB)成功启动了 minshift。

    【讨论】:

      【解决方案2】:

      我使用此命令cdk-scripts 来验证该机器是否能够在其上运行 minishift 之前进行虚拟化。应该适用于 win 10 和 7。

      随时检查您机器上的命令。为此,您将需要 powershell。

      【讨论】:

      • 谢谢 Ondrej。我试图从 powershell 运行提供“cdk3-virt.sh”的脚本文件,所以我被要求安装适用于 Linux 的 Windows 子系统,我通过在 Windows 10 Pro 上安装 Ubuntu 来完成此操作,但遇到了缺少 script-utils.sh 的依赖项在执行它时。非常感谢任何其他详细信息。
      • 我指的是 powershell 命令本身。您可以提取它们并在 powershell 中执行,这将为您提供基本概述是否在 Windows 上为 minishift 正确设置了虚拟化 - 这样您就不需要安装 linux 子系统。但是,如果你想使用整个脚本,你必须签出引用的 git repo,cd 到脚本目录,然后调用脚本cdk3-virt.sh。您需要在 bash 中运行它。你可以安装即。用于 Windows [1] 的 Git Bash。 [1]:superuser.com/questions/1053633/…
      • 谢谢 Ondrej。是的,我确实遵循了提取 PS 命令本身的第一种方法。这让我了解是否启用了虚拟化。我卸载了现有的虚拟机并设法从 Windows 管理程序选项运行 minishift。我调整了我的应用程序进程(以控制 RAM 使用)并使用可用的 4GB RAM(我的机器总共 8 GB)成功启动了 minshift。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多