OpenStack training-labs - VBoxManage.exe: error: Invalid machine group
OpenStack training-labs - VBoxManage.exe: error: Invalid machine group
我正在尝试将 OpenStack 实例安装到 VirtualBox 虚拟机中,如 https://wiki.openstack.org/wiki/Documentation/training-labs#Building_the_cluster
在 ./osbash.sh -w cluster
之后出现错误
VBoxManage.exe: error: Invalid machine group 'C:/Program Files/Git/labs'
是的,C:/Program Files/Git
是 git-bash.exe 的实际位置 Git-Windows Bash,但是 如何让osbash.sh
以正确的机器组名进行?
Windows 的 http://docs.openstack.org/training_labs/ 稳定版 Mitaka 脚本
http://tarballs.openstack.org/training-labs/dist/labs-stable-mitaka.zip
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 /labs
P.S。尝试 git://git.openstack.org/openstack/training-labs.git
的最新主控时出现同样的错误
文档可能误导了您。您不需要 POSIX 环境来在 Windows 上构建集群,并且(正如您发现的那样)使用 bash 脚本在 Windows.[=10 上不起作用=]
您只需要安装 VirtualBox 和下载的 zip 文件的内容。无需将 VBoxManage 添加到 Path,脚本应该可以找到可执行文件。
您下载的 zip 文件包含在 wbatch 目录中的 Windows 上构建集群的 Windows 批处理文件。只需双击它们:1) create_hostnet 2) create_base 3) create_ubuntu_cluster_node
就是这样。这些脚本将设置虚拟机、下载 Ubuntu ISO 映像并构建 OpenStack 集群。
我正在尝试将 OpenStack 实例安装到 VirtualBox 虚拟机中,如 https://wiki.openstack.org/wiki/Documentation/training-labs#Building_the_cluster
在 ./osbash.sh -w cluster
之后出现错误
VBoxManage.exe: error: Invalid machine group 'C:/Program Files/Git/labs'
是的,C:/Program Files/Git
是 git-bash.exe 的实际位置 Git-Windows Bash,但是 如何让osbash.sh
以正确的机器组名进行?
Windows 的 http://docs.openstack.org/training_labs/ 稳定版 Mitaka 脚本 http://tarballs.openstack.org/training-labs/dist/labs-stable-mitaka.zip
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 /labs
P.S。尝试 git://git.openstack.org/openstack/training-labs.git
文档可能误导了您。您不需要 POSIX 环境来在 Windows 上构建集群,并且(正如您发现的那样)使用 bash 脚本在 Windows.[=10 上不起作用=]
您只需要安装 VirtualBox 和下载的 zip 文件的内容。无需将 VBoxManage 添加到 Path,脚本应该可以找到可执行文件。
您下载的 zip 文件包含在 wbatch 目录中的 Windows 上构建集群的 Windows 批处理文件。只需双击它们:1) create_hostnet 2) create_base 3) create_ubuntu_cluster_node
就是这样。这些脚本将设置虚拟机、下载 Ubuntu ISO 映像并构建 OpenStack 集群。