【问题标题】:minishift start using HyperV fails when devtools installed on a different drive than /Users当 devtools 安装在与 /Users 不同的驱动器上时,使用 HyperV 的 minishift 启动失败
【发布时间】:2018-01-07 17:23:41
【问题描述】:

在运行 minishift 时将 RH DevelopmentTools 安装到 D: 是否存在已知问题?

我安装到 D:\DevelopmentTools,它创建了一个 C:\Users\rcoe.minishift 目录,RHEL iso 位于该目录中。配置看起来正确:

> D:\DevelopmentSuite>minishift config view
> - iso-url              : file://C:/Users/rcoe/.minishift/cache/iso/minishift-rhel7.iso
> - memory               : 4096
> - vm-driver            : hyperv

然而,当我尝试启动 minishift 时,它无法找到 iso。从错误情况来看,正在搜索 /Users 的驱动器并不明显。它实际上是否会尝试从安装了开发工具的驱动器(即 D:)解析 /Users?

> D:\DevelopmentSuite>minishift start
> -- Checking if Hyper-V driver is installed ... OK
> -- Checking if Hyper-V driver is configured to use a Virtual Switch ... OK
> -- Checking if user is a member of the Hyper-V Administrators group ... OK
> -- Starting local OpenShift cluster using 'hyperv' hypervisor ...
> -- Minishift VM will be configured with ...    Memory:    4 GB    vCPUs :    2    Disk size: 20 GB
> -- Starting Minishift VM ...... FAIL E0107 11:49:57.549243    3524 start.go:356] Error starting the VM: Error creating the VM. Error
> creating machine: Error in driver during machine creation: open
> /Users/rcoe/.minishift/cache/iso/minishift-rhel7.iso: The system
> cannot find the path specified.. Retrying. Error starting the VM:
> Error creating the VM. Error creating machine: Error in driver during
> machine creation: open
> /Users/rcoe/.minishift/cache/iso/minishift-rhel7.iso: The system
> cannot find the path specified.

已知问题或单独的配置条目可以解决此问题吗?

我正在从 cmd shell 运行。我在 HyperV 管理员组中。

谢谢, 罗宾

【问题讨论】:

    标签: windows-10 openshift minishift


    【解决方案1】:

    迟到总比没有好。虽然我不知道这是什么原因(坦率地说,它看起来不像任何人那样),但它与此有关:https://github.com/minishift/minishift/issues/236

    但是,关于线程的建议修复都不能自行工作。你需要做的是:

    1. minishift.exe 放到您的%USERPROFILE% 文件夹所在驱动器的root
    2. 从 Path 中移除 minishift(确保它不能以除直接调用可执行文件之外的任何方式调用)
    3. 从您的用户配置文件驱动器中从提升的 PowerShell(以管理员身份运行 PowerShell)调用可执行文件。例如,如果您的用户配置文件在 F 驱动器上,那么这样的操作将起作用:

      cd F:\
      ./minishift.exe start
      

    薛定谔知道这种奇怪行为的原因是什么——我的意思是主路径解析是编程中最基本的事情之一,但是你去吧。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-01
      • 2012-09-28
      • 1970-01-01
      • 1970-01-01
      • 2019-04-07
      相关资源
      最近更新 更多