DevStack can be installed on Fedora, Ubuntu, and CentOS. For supported versions see DevStack documentation
We recommend that you install DevStack in a VM, rather than on your main system. That way you may avoid contamination of your system. You may find hypervisor and VM requirements in the next section. If you still want to install DevStack on your baremetal system, just skip the next section and read further.
In order to run DevStack in a local VM, you need to start by installing a guest with Ubuntu 14.04 server. Download an image file from Ubuntu’s web site and create a new guest from it. Virtualization solution must support nested virtualization. Without nested virtualization VMs running inside the DevStack will be extremely slow lacking hardware acceleration, i.e. you will run QEMU VMs without KVM.
On Linux QEMU/KVM supports nested virtualization, on Mac OS - VMware Fusion. VMware Fusion requires adjustments to run VM with fixed IP. You may find instructions which can help below.
Start a new VM with Ubuntu Server 14.04. Recommended settings:
When allocating CPUs and RAM to the DevStack, assess how big clusters you want to run. A single Hadoop VM needs at least 1 cpu and 1G of RAM to run. While it is possible for several VMs to share a single cpu core, remember that they can’t share the RAM.
After you installed the VM, connect to it via SSH and proceed with the instructions below.
The instructions assume that you’ve decided to install DevStack into Ubuntu 14.04 system.
Note: Make sure to use bash, as other shells are not fully compatible and may cause hard to debug problems.
$ sudo apt-get install git-core
$ git clone https://git.openstack.org/openstack-dev/devstack.git
local.conf
in devstack directory with the following
content:[[local|localrc]]
ADMIN_PASSWORD=nova
MYSQL_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=nova
# Enable Swift
enable_service s-proxy s-object s-container s-account
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
# Force checkout prerequisites
# FORCE_PREREQ=1
# keystone is now configured by default to use PKI as the token format
# which produces huge tokens.
# set UUID as keystone token format which is much shorter and easier to
# work with.
KEYSTONE_TOKEN_FORMAT=UUID
# Change the FLOATING_RANGE to whatever IPs VM is working in.
# In NAT mode it is the subnet VMware Fusion provides, in bridged mode
# it is your local network. But only use the top end of the network by
# using a /27 and starting at the 224 octet.
FLOATING_RANGE=192.168.55.224/27
# Enable logging
SCREEN_LOGDIR=$DEST/logs/screen
# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly
# without Internet access. ``stack.sh`` must have been previously run
# with Internet access to install prerequisites and fetch repositories.
# OFFLINE=True
# Enable sahara
enable_plugin sahara git://git.openstack.org/openstack/sahara
In cases where you need to specify a git refspec (branch, tag, or commit hash) for the sahara in-tree devstack plugin (or sahara repo), it should be appended to the git repo URL as follows:
enable_plugin sahara git://git.openstack.org/openstack/sahara <some_git_refspec>
local.conf
file:enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer
$ ./stack.sh
local.conf
.If you install DevStack with sahara included you can rejoin screen with the
screen -c stack-screenrc
command and switch to the sahara
tab.
Here you can manage the sahara service as other OpenStack services.
Sahara source code is located at $DEST/sahara
which is usually
/opt/stack/sahara
.
/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf
subnet 192.168.55.0 netmask 255.255.255.0 {
range 192.168.55.128 192.168.55.254;
192.168.55.20
dhcpd.conf
(don’t forget to replace
VM_HOSTNAME
and VM_MAC_ADDRESS
with actual values):host VM_HOSTNAME {
hardware ethernet VM_MAC_ADDRESS;
fixed-address 192.168.55.20;
}
$ sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
$ sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.