Minishift:创建虚拟机时出现问题

时间:2017-08-25 06:01:52

标签: openshift-origin minishift

关于在虚拟盒上使用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/ )

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

1 个答案:

答案 0 :(得分:0)

该命令的主要问题 - 以及它真正所抱怨的 - 是你在一条不带引号的路径中传递的:

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

应该是

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

但根据MiniShift documentation ,您应该更新到VirtualBox 5.1.12+(您有)并使用以下语法:

minishift.exe start --vm-driver=virtualbox

在问到这个问题并使用VirtualBox v4.3.30后7个月,我可以使用最后一个命令运行MiniShift v1.15.1,但是不能让它接受你以前的语法甚至产生相同的错误它