2

我关于在虚拟盒上使用 minishift 安装 openshift 环境的问题。

minishift v1.4.1+0f658ea

VirtualBox-5.1.26-117224-Win.exe

由于以下错误,安装不完整:-

C:\Users\xyzdgs\Desktop\Openshift_n_Docker\OpenShift Developer>minishift.exe start --vm-driver=C:\Program Files\Oracle\VirtualBox\VBoxSVC.exe

-- Starting local OpenShift cluster using 'C:\Program' hypervisor ...
-- Minishift VM will be configured with ...
Memory:    2 GB
vCPUs :    2
Disk size: 20 GB
Downloading ISO 'https://github.com/minishift/minishift-b2d-iso/releases/download/v1.1.0/minishift-b2d.iso'
40.00 MiB / 40.00 MiB [===========================================] 100.00% 0s
-- Starting Minishift VM ... | Unsupported driver: C:\Program

所以,为了解决这个问题,我只需将所有驱动程序所在的目录放在安装中并再次运行它

C:\Users\xyzdgs\Desktop\Openshift_n_Docker\OpenShift Developer>minishift.exe start --vm-driver=C:\Program Files\Oracle\VirtualBox\

-- Starting local OpenShift cluster using 'C:\Program' hypervisor ...
-- Starting Minishift VM ... / FAIL E0825 11:20:43.830638    1260 start.go:342]
Error starting the VM: Error getting the state for host: machine does not exist.
Retrying.
| FAIL E0825 11:20:44.297638    1260 start.go:342] Error starting the VM: Error getting the state for host: machine does not exist. Retrying.
/ FAIL E0825 11:20:44.612638    1260 start.go:342] Error starting the VM: Error getting the state for host: . Retrying.
Error starting the VM: Error getting the state for host: machine does not exist
Error getting the state for host: machine does not exist
Error getting the state for host: machine does not exist

它说“机器不存在”,机器不应该由 minishift 本身创建(参见此处的程序:blog.novatec-gmbh.de/getting-started-minishift-openshift-origin-one-vm/)

不确定是什么原因造成的。请指导。

4

1 回答 1

0

The main issue with the command -- and what it's really complaining about -- is that you're passing in an unquoted path:

minishift.exe start --vm-driver=C:\Program Files\Oracle\VirtualBox\VBoxSVC.exe

should have been

minishift.exe start --vm-driver="C:\Program Files\Oracle\VirtualBox\VBoxSVC.exe"

But according to the MiniShift documentation, you should update to VirtualBox 5.1.12+ (which you have) and use the following syntax:

minishift.exe start --vm-driver=virtualbox

7 months after this question was asked and using VirtualBox v4.3.30, I can get MiniShift v1.15.1 running with the last command, but can't get it to accept your previous syntax or even produce the same error from it.

于 2018-03-29T20:16:25.993 回答