安装minishift时出错:正在检查是否安装了Hyper-V驱动程序...失败

时间:2018-06-27 22:52:37

标签: minishift

我一直在按照以下步骤在本地计算机上安装minishift。直到我需要创建一个虚拟交换机并将HyperV设置为默认驱动程序为止,所有命令似乎都能正常工作。我按照步骤创建了一个名为“外部VM交换机”的虚拟交换机。当我尝试启动minishift时,当它检查是否已安装“ Hyper-V驱动程序”时,总是会显示 FAIL (失败)。我已经按照建议的文档中的步骤进行操作,但是即使完成这些步骤,在尝试启动minishift时仍然遇到相同的错误。

PS C:\WINDOWS\system32> minishift config set vm-driver hyperv
No Minishift instance exists. New 'vm-driver' setting will be applied on next 'minishift start'

PS C:\WINDOWS\system32> minishift start --hyperv-virtual-switch "External VM Switch"
-- Starting profile 'minishift'
-- Check if deprecated options are used ...
   Use of HYPERV_VIRTUAL_SWITCH has been deprecated
   Please use: minishift config set hyper-virtual-switch External
FAIL

-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.9.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.9.0' is supported ... OK
-- Checking if requested hypervisor 'hyperv' is supported on this platform ... OK
-- Checking if Hyper-V driver is installed ... FAIL
   See the 'Setting Up the Virtualization Environment' topic (https://docs.openshift.org/latest/minishift/getting-started/setting-up-virtualization-environment.html) for more information

Added External VM Switch

3 个答案:

答案 0 :(得分:3)

出现[未找到虚拟交换机]错误-我需要使用“编辑本地用户和组”管理单元将用户ID添加到HyperV Administrators组中。注销并重新登录后,问题已解决。

答案 1 :(得分:0)

此问题已解决吗? 您是否尝试过使用virtualbox而不是默认的hyperv。 还要如下设置环境变量

设置MINISHIFT_HYPERV_VIRTUAL_SWITCH =“外部VM开关”

答案 2 :(得分:0)

尝试使用此命令minishift config set hyperv-virtual-switch "External VM Switch,确保您正在使用管理员权限运行Power-shell。