IONe based Provisioning Module for WHMCS
Manage and account your Virtual Infrastructure using IOpenNebula and WHMCS
Before you start, don't forget to install and configure IONe Cloud at your OpenNebula. Manual here.
The path is:
Setup ->
General Settings ->
Security ->
API IP Access Restriction
Path:
Setup ->
Products/Services ->
Create a New Group
Then, add a New Product, for example 'Small VM'.
Important! Don't forget to fill Product Description field
Product Description Example:
{
"properties": [
{
"GROUP": "cpu_core",
"VALUE": "1",
"TITLE": "1"
},
{
"GROUP": "ram",
"VALUE": "1 Gb",
"TITLE": "1 Gb"
},
{
"GROUP": "hdd",
"VALUE": "30 Gb",
"TITLE": "30 Gb",
"IOPS": "500"
}
]
}
Path:
Setup ->
Products/Services ->
Products Addon
Important! Don'f forget to fill Product Description field
Product Description Example:
{
"GROUP": "os",
"TITLE": "CentOS x64",
"VALUE": "1"
}
Check the Show on Order checkbox.
This is the minimal settings for VMs auto-install from order.
Download and extract module from our github repo.
Put addons and servers to /modules/, so you should get:
/modules/servers/onconnector/
/modules/addons/oncontrol/
Path:
Setup ->
Addon Modules
Press 'Activate' button near 'Open Nebula Control'.
Important! Set Module rights to 'Full Administrator'
If you wish to some of your users have Suspend immunity
- Open Setup -> Custom Client Fields
- Add Custom 'Drop Down' Field with the next options: Not Set, Yes, No
Path:
Setup ->
Products/Services ->
Servers ->
Add New Server
Fill Name and IP Address. Example: Name: IONe Cloud IP Address: yourcloud.yourdomain.org
CentOS:
yum install -y git make automake gcc gcc-c++ kernel-devel ruby-devel zeromq zeromq-devel php-zmq
service httpd restart
Ubuntu:
apt-get install -y git make automake gcc gcc-c++ kernel-devel ruby-devel zeromq zeromq-devel php-zmq
service httpd restart
Open Addons -> Open Nebula Control -> Configuration -> Configure module Fill next fields:
- WHMCS admin username - Admin User which will be used for executing some functions. You may create 'oneadmin' user with Administrator rights, for example.
- OpenNebula URL - OpenNebula Front-end(e.g. Sunstone) URL
- IP - IP Address of the host, where IONe Cloud is
- Port - Port, which IONe Cloud listens
- Immunity - Field Name, which you've created before
Open Addons -> Open Nebula Control -> Configuration -> Configure templates -> Add
Enter Template ID from OpenNebula(you may see them by executing this at OpenNebula host: onetemplate list
)
Connect it with OS Addon.
Also you may specify some description, if you wish.
- Add new Order with configured Product
- Accept this Order
- The VM installation should start.
- If not, you may check the Logs at Utilities -> Logs -> Module Log