These are my notes for the installaton of OpenStack on CentOS running in VirtualBox.

1. Virtualbox Setup

Virtualbox preferences:

  • Enable NatNetwork and enable support DHCP

CentOS VM settings:

  • 10GB ram + 4 cpu’s
  • Adapter 1: NAT with portforwarding Host port: 3333, guest post: 22
  • Adapter 2: Bridged Adapter
  • CentOS 7 minimal iso

2. CentOS Setup

After the installation, ssh into the CentOS vm:

ssh -p 3333 username@localhost

Become root


Update the network interface settings by editing following files:

vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
vi /etc/sysconfig/network-scripts/ifcfg-enp0s8

Change the ONBOOT statement from no to yes


Before the installation we need to stop and disable the Firewalld and NetworkManager and start the Network service

systemctl disable firewalld
systemctl stop firewalld
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl start network

Update the yum package list

yum update -y

3. Install OpenStack with Packstack

Check for a maintained release of OpenStack. I took Queens. On CentOS, the extras repository provides the RPM for the OpenStack repository. So we can simply install the package to enable the OpenStack repository.

yum install -y centos-release-openstack-queens
yum upgrade -y

Packstack is a utility that uses Puppet modules to deploy various parts of OpenStack automatically. Let’s install and execute it:

yum install -y openstack-packstack
packstack --allinone

The last step will take a while. Fingers crossed for no errors.

After the installation, a keystonerc_admin file will be created with the admin login credentials and url for the Horizon OpenStack web dashboard.

cat keystonerc_admin
    export OS_USERNAME=admin
    export OS_PASSWORD='36b2abc146b44be7'
    export OS_AUTH_URL=
    export PS1='[\u@\h \W(keystone_admin)]\$ '

export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default

Open the ip address in a browser and login.

We’re done.