2017-03-16 19:32:03 +00:00
Here are the steps to follow for running opennebula-integration correctly.
2017-04-22 05:22:19 +00:00
1. Install [python-oca ](https://github.com/python-oca/python-oca )
2017-03-16 19:32:03 +00:00
This is the library that allows sending XMLRPC commands to OpenNebula. Unfortunately, the latest version of oca available in Python package index is not compatible with python 3.5. Hence, one would need to download the latest version from the above github link and install it from there.
Assuming virtualenv is located at ~/python/env
```
~/python/env/bin/python setup.py build
sudo ~/python/env/bin/python setup.py install
```
2017-04-26 05:10:52 +00:00
2. Setup opennebula parameters in the `.env` file.
2017-03-16 19:32:03 +00:00
```
2017-04-26 05:10:52 +00:00
#############################################
# configurations for opennebula-integration #
#############################################
2017-03-16 19:32:03 +00:00
2017-04-26 05:10:52 +00:00
# The oneadmin user name of the OpenNebula infrastructure
OPENNEBULA_USERNAME='oneadmin'
# The oneadmin password of the OpenNebula infrastructure
# The default credentials of the Sandbox OpenNebula VM is
2017-03-16 19:32:03 +00:00
# oneadmin:opennebula
2017-04-26 05:10:52 +00:00
OPENNEBULA_PASSWORD='opennebula'
2017-03-16 19:32:03 +00:00
# The protocol is generally http or https
2017-04-26 05:10:52 +00:00
OPENNEBULA_PROTOCOL='http'
2017-03-16 19:32:03 +00:00
# The ip address or the domain name of the opennebula infrastructure
2017-04-26 05:10:52 +00:00
OPENNEBULA_DOMAIN='192.168.182.124'
2017-03-16 19:32:03 +00:00
2017-04-26 05:10:52 +00:00
# The port to connect in order to send an xmlrpc request. The default
2017-03-16 19:32:03 +00:00
# port is 2633
2017-04-26 05:10:52 +00:00
OPENNEBULA_PORT='2633'
2017-03-16 19:32:03 +00:00
2017-04-26 05:10:52 +00:00
# The endpoint to which the XML RPC request needs to be sent to. The
2017-03-16 19:32:03 +00:00
# default value is /RPC2
2017-04-26 05:10:52 +00:00
OPENNEBULA_ENDPOINT='/RPC2'
2017-03-16 19:32:03 +00:00
```