Cloud accounts can create multiple VMs based on the resources assigned to their account. The Cloud Accounts can resell VMs in an automated manner.
This guide is intended for Woktron Cloud VPS accounts who wish to automate their VM business via WHMCS. WHMCS can be configured to create a VPS as soon as you accept an Order (Automatically or Manually). We provide a module for WHMCS to enable you to do so.
The installation and configuration of the WHMCS module will take a few minutes but it is not complicated. Once configured, you can automate, create, delete, edit and suspend a VPS with ease.
Download the Virtualizor WHMCS Cloud module HERE
Unzip and upload the
virtualizor_cloud folder to your
Please make sure that the upload was done properly and the following folder exists :
VPS Information View in WHMCS Client Panel:
VPS information View in WHMCS Admin Panel:
Virtualizor can generate a Unique Key and Password make API calls to the Virtualizor Master. You will need the API Key and Password to add the server to WHMCS.
This information can be found from the
Woktron Cloud Control Panel -> API Credentials.
Adding a server to WHMCS
To add the Virtualizor Server to WHMCS login to WHMCS Admin Panel Then go to
WHMCS Admin Panel -> Setup -> Servers -> Add New Server and fill the form as shown in the below images :
Creating a Product
Now, you will need to create a product.
To do so go to
WHMCS Admin Panel -> Setup -> Products/Services -> Create a New Product and fill in the details as per the following image and specify the Products Name of your choice
Now proceed to the Module Settings. Click on the Module Settings Tab and choose the Module Name Virtualizor_cloud. A list of fields will load which will be the settings for the new product. A sample configuration is shown in the below image.
The fields are self explanatory, but the following is a detailed explanation :
- Type: The Virtualization type of the server you added.
- Disk Space: The amount of disk space that the VPS will be allowed to use.
- Guaranteed RAM: The amount of RAM to be allocated to the VPS
- Burstable RAM: The amount of Burstable RAM allowed to the VPS in MBs. This is only for OpenVZ
- SWAP RAM: Swap Ram for the VPS. This is for Xen and KVM VPSs
- Bandwidth: The allowed bandwidth to the VPS in GBs
- CPU Cores: Number of CPU Cores
- VNC: Whether to enable VNC or not for the VPS. Applies to Xen and KVM
- IPs: The number of IPs to be allocated to this VPS
- IPv6 Subnets: The number of IPv6 Subnets to be allocated to this VPS
- IPv6: The number of IPv6 Addresses to be allocated to this VPS
- Region: Name of the Region that the VPS must be created on. You can also specify auto as the name of the Region. If you specify auto then the WHMCS module will AUTO select the server based on the Virtualization technology
Now Click on the Custom Fields Tab and fill in the form as per the following image:
Just for your information the vpsid is the VPS ID as per the Virtualizor Database and needs to be stored for any future action like Terminate, Suspend, etc. Please fill it as per the above Image.
The OS field is the List of Operating System Templates on your server. Virtualizor provides templates to its users. Its a COMMA seperated value. This will allow the USER to choose the OS when he is signing up for the VPS. Also the list should not have the template suffix of tar.gz, img, etc. e.g. centos-7-x86_64.tar.gz should be
centos-7-x86_64 in the OS List. Basically the module does a name match of the OS Template.
The ISO field is to display list of mountable ISO images to your clients. This field will allow users to choose the ISO image while signing up for any plan.
NOTE: Please add the
none value when you add ISO and OS field. (Please refer the screenshot above)
NOTE: The ISO option is not supported by OpenVZ and XEN-PV VPS.
Configurable Options [OPTIONAL]
You can add the Configurable Options as per your requirements or exclude one or more of the options below if you do not need it.
NOTE: The order of preference for selection of Configurable Options is first i.e. If a Product/Service has (lets say) Ram defined as 512 MB and you have also created a Configurable Option with variable Ram options, then the users chosen Ram value from configurable options will be used and not the ram value in Product/Service.
Following are the Configurable Options available in Virtualizor WHMCS module.
- Number of IPs
- Number of IPv6 Address
- CPU Cores
- Operating System
- Control Panel
To add a configurable option, go to
WHMCS Admin Panel -> Setup -> Products/Services -> Configurable Options. Then click on Create a new Group
Now, click on the Add New Configurable Option button. A new window will open.
Add a configurable option for Number of IPs as below:
Add a configurable option for Disk Space as below:
Add a configurable option for RAM as below:
Add a configurable option for Bandwidth as below:
Add a configurable option for CPU Cores as below:
Add a configurable option for Operating System as below:
Control Panel Configurable option for BuycPanel licensing :
You can assign automation for cPanel control panel licensing for your Virtualizor VPS. This Configurable option allows you to display a dropdown of control panel list which can be selected by the user and the license will be automatically activated by BuycPanel.
NOTE : You must enter your BuycPanel Login and API Key in the
Please make sure that the whmcs server has ports
4082,4083,4084 and 4085 opened.
If you need any assistance then please contact Softaculous Virtualizor Support. Please send us a screenshot of the Module Settings and the Custom Fields you added to the Product.