Installing OpenStack Dashboard is a straightforward process using Ubuntu's package repository.
Ensure that you are logged in to the OpenStack controller
node. If you use Vagrant to create this as described in the Installing the OpenStack Identity service recipe of Chapter 1, Keystone – OpenStack Identity Service, we can access this with the following command:
vagrant ssh controller
To install OpenStack Dashboard, we simply install the required packages and dependencies by following these steps:
sudo apt-get update sudo apt-get install openstack-dashboard
/etc/openstack-dashboard/local_settings.py
file, thus:OPENSTACK_HOST = "192.168.100.200" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_" CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } ALLOWED_HOSTS = '*'
/etc/nova/nova.conf
:# NoVNC novnc_enabled=true novncproxy_host=192.168.100.200 novncproxy_base_url=http://192.168.100.200:6080/vnc_auto.html novncproxy_port=6080 xvpvncproxy_port=6081 xvpvncproxy_host=192.168.100.200 xvpvncproxy_base_url=http://192.168.100.200:6081/console vncserver_proxyclient_address=192.168.100.200 vncserver_listen=0.0.0.0
nova-api
to pick up the changes:sudo restart nova-api sudo restart nova-compute sudo service apache2 restart
Installing OpenStack Dashboard under Ubuntu gives a slightly different look and feel from a stock installation of Dashboard. The functions remain the same, although Ubuntu adds an additional feature to allow the user to download environment settings for the Canonicals' orchestration tool, Juju. To remove the Ubuntu theme, execute the following command:
sudo dpkg --purge openstack-dashboard-ubuntu-theme
Installing the OpenStack Dashboard, Horizon, is done using the Ubuntu package repository. Given that the OpenStack Dashboard runs over an Apache web server, we have to restart the web server to pick up the changes.
We also include the VNC Proxy service. It provides us with a great feature to access our instances over the network, through the web interface.
For the remainder of this chapter, the screenshots show the standard OpenStack interface after the removal of the Ubuntu theme.