我正在尝试将OpenStack实例安装到VirtualBox am中,就像在cluster上一样
在./osbash.sh -w cluster之后,我得到错误
VBoxManage.exe:错误:无效的机器组'C:/Program /Git/labs‘
是的,C:/Program Files/Git是git-bash.exe的位置,这是实际的Git-Windows Bash,但是如何使继续使用正确的机器组名?
这些脚本是稳定的,来自labs/ for Windows http://tarballs.openstack.org/training-labs/dist/labs-stable-mitaka.zip的Mitaka
Paul@aspire MINGW64 /d/Workspaces/OpenStack/labs-stable-mitaka/labs/osbash
$ ./osbash.sh -b cluster
Base disk: base-ssh-mitaka-ubuntu-14.04-server-amd64
Distribution name: ubuntu
Virtualization provider: virtualbox
Creating Windows batch scripts: no
Creating cluster on this machine: yes
VM access method: ssh
GUI type: headless
2016年09月20日 18:09:36 osbash starting
Creating basedisk.
2016年09月20日 18:09:36 osbash vm_install starts.
Asked to delete VM "base" (not found)
Creating VM "base"
VBoxManage.exe: error: Invalid machine group 'C:/Program Files/Git/labs'
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component VirtualBoxWrap, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "ComposeMachineFilename(bstrName.raw(), bstrPrimaryGroup.raw(), createFlags.raw(), bstrBaseFolder.raw(), bstrSettingsFile.asOutParam())" at line 264 of file VBoxManageMisc.cpp
FAILURE: VBoxManage: createvm --name base --register --ostype Ubuntu_64 --groups /labsP.S.在尝试来自git://git.openstack.org/openstack/training-labs.git的最新主程序时出现相同的错误
发布于 2016-09-20 17:48:16
这些文件可能误导了你。在Windows上构建集群不需要POSIX环境,而且(正如您发现的)使用bash脚本在Windows上不起作用。
您需要的只是一个VirtualBox安装和您下载的zip文件的内容。不需要将VBoxManage添加到路径中,脚本无论如何都应该找到可执行文件。
您下载的zip文件包含在wbatch目录中在Windows上构建群集的Windows批处理文件。只需双击: 1) create_hostnet 2) create_base 3) create_ubuntu_cluster_node
就这样。脚本将设置VM,下载Ubuntu映像并构建OpenStack集群。
https://stackoverflow.com/questions/39591574
复制相似问题