Table of Contents

OpenNebula Zones Server Setup 4.0

:!: Development version of OpenNebula 4.0. The material on this page needs to be reviewed for completeness and accuracy.

This guide intends to give a walk through the steps needed to correctly configure the oZones Server to start managing Zones and VDCs. Also, it provides steps to configure a reverse proxy based on the Apache web server to hide the VDC details from end users.

inlinetoc

Requirements

Configuration

Configure Apache

Apache needs to be configured to act as a reverse proxy, using the mod_proxy module. To correctly configure it, the following steps need to be taken:

:!: The following details are valid for Ubuntu installations, but it should be fairly easy to extrapolate to any other linux flavor.

<xterm> $ sudo a2enmod rewrite $ sudo a2enmod proxy_http </xterm>

ServerName <hostname-of-ozones-front-end>
<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None

To this:

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all

<xterm> $ sudo /etc/init.d/apache2 restart </xterm>

Configure oZones Server

Before starting the oZones server be sure to:

Attribute Description
databsetype This can to be set to 'sqlite' or 'mysql'. For the latter, a “ozones” named database needs to be created manually.
databaseserver Only needed for mysql and postgres backends. Syntax is <dbusername>:<dbuserpassword>@<DBserver_hostname>.
htaccess Location of the root .htaccess file for the apache reverse proxying configuration, if not sure leave the default /var/www/.htaccess. This file needs to be writable by “oneadmin” (or the user executing the ozones-server), one option is to precreate the .htaccess file and change its owner to oneadmin.
dbdebug Wether the DB related events are going to be logged or not.
host Hostname of the server running the oZones server.
port Port of the server where the oZones server will listen.

Then start simply start the server that will be listening in the target URL with: <xterm>

ozones-server start

ozones-server listening on 127.0.0.1:6121 </xterm>

Configure oZones Client

You will need to set the following environment variables in order to use the CLI:

Variables Description
OZONES_URL Should point to the HTTP URL of the oZones server (defaults to “http://localhost:6121”).
OZONES_AUTH Should point to a file containing the oZones administrator credentials separated by a colon, like 'username:password'.