Installing OpenStack “Kilo” release on CentOS 7

Pre-requisites

  • Centos 7 minimal ISO – the one I used for this setup is “CentOS-7-x86_64-Minimal-1511.iso”
  • Virtual Machine (I am using ESXi 6.0) with 4 vCPU, 16GB RAM and 100GB vDisk
  • Specific to ESXi hypervisor – Enable CPU Hardware Virtualization [Check the box “Expose hardware assisted virtualization to the guest OS]
  • 1 virtual NIC, adapter type VMXNET3
  • VM should have connectivity to Internet
  • In ESXi while creating the VM choose:
    • Guest OS: Linux
    • Guest OS Version: CentOS 4/5/6/7 (64-bit)

Install CentOS 7 [specific configurations]

  • On the Installation Summary screen
    • SECURITY POLICY à Apply security policy: OFF
    • NETWORK & HOSTNAME
      • Ethernet: ON
      • Configure: IPv4 Settings à Method: Manual
      • Provide a static IP address, Netmask & Gateway
      • Provide DNS Server IP
    • Hostname: <Enter a hostname to identify the OS controller>
    • Select automatic partitioning
  • Provide a password for root and also create a Regular user & password. Leave default settings

Preparing the VM for Openstack Installation

  • Post installation of CentOS 7, login as root.
  • By default Network Manager service is enabled. This causes issues with OpenStack networking. Disable Network Manager service
    • # service NetworkManager stop
    • # chkconfig NetworkManager off [this ensures the service will not get started on reboot]
    • # service network start [ensure networks service is UP & Running]
    • # chkconfig network on [Network service starts on reboot]
    • # yum update –y [Update the yum repository]

OpenStack “Kilo” Installation

OpenStack Kilo RDO rpm Installation

  • Redhat has its own version of OpenStack called RDO and provides a script called “packstack” to easily install OpenStack.
  • As CentOS is the community edition of RHEL, RDO and packstack are supported on it.

Install OpenStack Kilo RDO rpm

  • Execute the below command as root [the below command installs the Openstack RDO related repositories in the VM]
# yum install -y https://repos.fedorapeople.org/repos/openstack/openstack-kilo/rdo-release-kilo-2.noarch.rpm

Install openstack-packstack

[below command installs packstack scripts]

# yum install -y openstack-packstack

For the purpose of demo or lab environments Openstack components can be deployed on a single VM called single node or all-in-one deployment. However, the recommendation in production environment is to use a multi-node environment which run OpenStack components on separate VM/machines.

To Install Openstack components in a single box, run the below command as the regular user that you created during installation.

NOTE: DO NOT use sudo or root user for this

$ packstack --allinone

NOTE: If the following error is encountered:

ERROR : Failed to load plugin from file prescript_000.py

Add the below lines to ~/.bash_profile and reboot the VM

export LC_ALL=en_US.UTF-8

export LANG=en_US.UTF-8

Post reboot, from VMware Remote console, login as regular user and run the packstack command again: $ packstack –allinone

On successfully completing the installation – access openstack dashboard:

http://<VM-IP&gt; /dashboard

username: admin

password: <”keystonerc_admin” file contains the admin password. The file is located in the home directory of the user eg: /home/user>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s