将RH DevelopmentTools安装到D:运行minishift时是否存在已知问题?
我安装到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。从错误情况来看,用户搜索哪个驱动器并不明显。实际上它可能会尝试从安装了Dev工具的驱动器中解析/用户,即D:?
> 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管理员组。
谢谢, 罗宾
答案 0 :(得分:0)
迟到总比不到好。尽管我不知道是什么原因(坦率地说,它看起来不像任何人那样),但它与此有关:https://github.com/minishift/minishift/issues/236
但是,对线程的所有提议修复都无法单独发挥作用。您需要做的是这样:
minishift.exe
放置到与%USERPROFILE%
文件夹所在的驱动器相同的驱动器的 root 从用户配置文件驱动器中提升的PowerShell中调用可执行文件(以管理员身份运行PowerShell)。例如,如果您的用户个人资料位于F驱动器上,则可以执行以下操作:
cd F:\
./minishift.exe start
Schrödinger知道发生这种奇怪行为的原因是什么-我的意思是本地路径解析是编程中最基本的事情之一,但是您就可以了。