OpenNebula tools (also known as onetools, opennebula-tools or OpenNebula CLI) is a set of command-line utilities that can be used to communicate with OpenNebula server from command line.
OpenNebula tools are currently available in the version that is the same as the version of OpenNebula server which runs MetaCentrum Cloud.
Currently it is version 4.14.2.
Initialize environment using
module add opennebula-tools-4.14
and now you can authenticate to the MetaCentrum Cloud's OpenNebula server using command
oneuser login -v YourLogin --x509 --cert YourCert.pem --key YourKey.pem --force
where YourCert.pem is your public certificate and YourKey.pem is your private key. Both can be extracted from your cert.p12 certificate (which must be registered in Perun system) using commands
openssl pkcs12 -in cert.p12 -out YourCert.pem -clcerts -nokeys openssl pkcs12 -in cert.p12 -out YourKey.pem -nocerts -nodes
By default, environment variable ONE_HOST and ONE_XMLRPC are set as follows:
export ONE_HOST=https://cloud.metacentrum.cz export ONE_XMLRPC=https://cloud.metacentrum.cz:6443/RPC2
but you can change them to any other value if you for some reason want to use OpenNebula tools to communicate with a different OpenNebula server.
OpenNebula tools consist of following utilities:
oneacct oneacl onecluster onedatastore oneflow oneflow-template onegroup onehost oneimage onemarket onesecgroup oneshowback onetemplate oneuser onevdc onevm onevnet onezone