As for the EC2 Query interface, the OpenNebula source package also includes a simple OCCI client implementation that is ready to use.
They are already installed on our frontend, but you can install them on a dedicated machine (for example: your workstation) using the source distribution and passing the -c
parameter to the install.sh
script:
$ ./install.sh -d ~/one-cli -c
Remember to install the required Ruby gems with the usual script, available in the main source distribution under share/install_gems/install_gems
:
$ ./install_gems cloud
Before using the OCCI client, it's highly recommended that you set up a bunch of environment variables in our ~/.profile
, so that we don't need to specify the URL
, username
, and password
in each command:
export OCCI_URL="http://odin.local:4567/" export ONE_AUTH=$HOME/.one/one_auth
OCCI_URL
is where the OCCI interface is reachable (directly on 4567
port or, via the SSL reverse proxy).