Scripts helps you to deploy Mirantis OpenStack on VirtualBox for Windows. It works using a host machine with a minimum of 8GB of RAM, but 16GB works better. See http://software.mirantis.com/ for additional information.
Scripts does folowing:
- configure VirtualBox environment according to config.vbs
- create Fuel Master VM and mount Mirantis OpenStack ISO in it
- wait for finish of Fuel install
- configure Master VM to access internet via VirtualBox NAT adapter
- create and run slave VMs
In order to successfully run Mirantis OpenStack under VirtualBox, you need to:
- install latest version of VirtualBox for windows and install VirtualBox Extension Pack
- download the Mirantis OpenStack official release (.iso) and place it under 'iso' directory
- edit
./config.vbs
- run
cscript ./launch.vbs
. It will automatically pick up the iso, and will spin up master node and slave nodes.
If there are any errors, the script will report them and abort.
If you want to change settings (number of OpenStack nodes, CPU, RAM, HDD), please refer to config.vbs
.
- In functions directory there is a vbscript modules with functions to comunicate with VirtualBox. You can use this functions in your own scripts.
- In actions directory there is scripts performing preparing VirtualBox environment and creating VMs for Mirantis OpenStack.
- In iso directory you should put MirantisOpenStack.iso file.
launch.vbs
is the main script which executes actions in particular order to deploy Fuel.config.vbs
initialazes variables that shapes VMs. Please look it through before runninglaunch.vbs
If you need only part of all actions to be done comment unnecessary actions in launch.vbs
.
For example you have already configured VirtualBox, network interfaces and installed master node.
Only thing you need is to create slave nodes. Edit "launch.vbs" and comment lines:
' Import ".\actions\clean-previous-installation.vbs"
' Import ".\actions\create-interfaces.vbs"
' Import ".\actions\master-node-create-and-install.vbs"
Do not comment line Import ".\actions\prepare-environment.vbs"
Otherwise script will fail.
- Windows Script Host have two script interpreters:
Wscript
for Window UI andCscript
for command line UI. Since scripts does a lot of output its beter to run it withCscript
interpreter. - Since there is no native ssh client in Windows scripts use
plink.exe
from Putty to determine finish of Fuel install. - One cannot name host-only interfaces in Windows. VirtualBox names it like
VirtualBox Host-Only Ethernet Adapter #N
and you cannot rename it. Scripts determine name of interface created and rewrite it inconfig.vbs
. - Sometimes VBoxManage can't properly configure IP at hostonly network. In that case scripts are trying to recreate hostonly network several times.
- You should run
actions\master-node-enable-internet.vbs
script after rebooting VirtualBox VM with the master node.