41 lines
1.4 KiB
Markdown
Executable file
41 lines
1.4 KiB
Markdown
Executable file
Here are the steps to follow for running opennebula-integration correctly.
|
|
|
|
1. Install [python-oca](https://github.com/python-oca/python-oca)
|
|
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
|
|
```
|
|
|
|
2. Setup opennebula parameters in the `.env` file.
|
|
|
|
```
|
|
#############################################
|
|
# configurations for opennebula-integration #
|
|
#############################################
|
|
|
|
# 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
|
|
# oneadmin:opennebula
|
|
OPENNEBULA_PASSWORD='opennebula'
|
|
|
|
# The protocol is generally http or https
|
|
OPENNEBULA_PROTOCOL='http'
|
|
|
|
# The ip address or the domain name of the opennebula infrastructure
|
|
OPENNEBULA_DOMAIN='192.168.182.124'
|
|
|
|
# The port to connect in order to send an xmlrpc request. The default
|
|
# port is 2633
|
|
OPENNEBULA_PORT='2633'
|
|
|
|
# The endpoint to which the XML RPC request needs to be sent to. The
|
|
# default value is /RPC2
|
|
OPENNEBULA_ENDPOINT='/RPC2'
|
|
```
|
|
|