Proxmox Cloud 2.X For WHMCS
From ModulesGarden Wiki
(Difference between revisions)
|
|
Line 5: |
Line 5: |
| {| | | {| |
| |style="padding: 10px 0px 10px 0px;"|'''Proxmox Cloud For WHMCS''' offers your clients the possibilities to create, remove and freely resize their own virtual servers within resource limit defined by you. | | |style="padding: 10px 0px 10px 0px;"|'''Proxmox Cloud For WHMCS''' offers your clients the possibilities to create, remove and freely resize their own virtual servers within resource limit defined by you. |
− | Owing to the module, your customers will be able to single-handedly create as many servers as they need and manage aspects like backups, network devices or firewall.<br />
| + | With our module, your customers will be able to single-handedly create as many servers as they need and manage aspects like backups, network devices or firewall.<br /> |
− | This gorgeous product lets you also conveniently manage servers, IP addresses and clusters owing an unique Proxmox Addon attached to the module. | + | This gorgeous product lets you also conveniently manage servers, IP addresses and clusters owing to an unique Proxmox Addon attached to the module. |
| |} | | |} |
| <!--comments are awesome --> | | <!--comments are awesome --> |
Revision as of 15:26, 21 November 2014
Proxmox Cloud For WHMCS offers your clients the possibilities to create, remove and freely resize their own virtual servers within resource limit defined by you.
With our module, your customers will be able to single-handedly create as many servers as they need and manage aspects like backups, network devices or firewall.
This gorgeous product lets you also conveniently manage servers, IP addresses and clusters owing to an unique Proxmox Addon attached to the module.
|
✔ Suspend/Unsuspend Server/User
|
✔ Migrate Server Between Nodes
|
✔ View Server Status, Details And Statistics
|
✔ View Graphs - With Ability To Change The Time Scale of MRTG Graphs
|
✔ Display Disk And Bandwidth Usage Of Each Product
|
✔ Import IP Address To Hosting IP Addresses Table
|
✔ Return IP Address To IP Addresses Pool
|
✔ Add Additional IP Address To VM
|
✔ Configure Functionalities Displayed In The Client Area
|
✔ Servers List (VPS And Cloud)
|
✔ IP Management (Per Server)
|
✔ Add/Manage/Delete Servers
|
✔ View Available Resources
|
✔ Backup Files & Job Limits (Max Number Of Files & Max Size Of Files)
|
✔ Schedule Backup Limit (Max Number Of Files & Max Size Of Files)
|
✔ View Graphs - With Ability To Change The Time Scale of MRTG Graphs
|
✔ View Server Status, Details And Statistics
|
✔ Display Disk And Bandwidth Usage
|
✔ Change Boot Order (KVM)
|
✔ Easy VM Upgrade/Downgrade
|
✔ Supports PVE And PAM Authentication
|
✔ Dynamically Chosen Server Resources While Ordering And Possibility To Upgrade Those Resources
|
✔ Integrated With Advanced Billing For WHMCS - Server Resource Usage Billing (read more)
|
✔ Integrated With IP Manager For WHMCS - Complete Management of IP Pools (read more)
|
✔ Supports Proxmox VE 3 and Later
|
✔ Supports WHMCS V5 and Later
|
- Available Configurable Options:
Installation and Configuration
This tutorial will show you how to successfully install and configure Proxmox Cloud For WHMCS.
We will guide you step by step through the whole installation and configuration process.
|
Installation
1. Log in to your client area and download Proxmox Cloud For WHMCS.
|
2. Upload and extract the module into the main WHMCS directory.
|
3. When you install Proxmox Cloud for the first time you have to rename 'license_RENAME.php' file.
File is located in 'modules/servers/proxmoxCloud/license_RENAME.php' . Rename it from 'license_RENAME.php' to 'license.php' .
|
4. In order to configure your license key, you have to edit a previously renamed 'license.php' file.
Enter your license key between quotation marks as presented on the following screen.
You can find your license key in your client area → 'My Products' .
|
Activation of Proxmox Addon
5. Firstly, you should activate Proxmox Addon.
To do so, log in into your WHMCS and press 'Setup' → 'Addon Modules' . Find 'Proxmox Addon' and press 'Activate' .
|
6. In next step you need to permit access to this module.
To do so, click on 'Configure' button. Tick 'Full Administrator' and press 'Save Changes' .
|
Configuration of Server
7. Now, we will show you how to configure a new product.
Go to 'Setup' → 'Products/Services' → 'Servers' and press 'Add New Server' .
|
8. Next, enter your server name, IP address, username and password.
Choose 'ProxmoxCloud' from a dropdown menu and press 'Save Changes' .
The last step is choosing authentication from the 'Authentication' dropdown menu.
Note: Authentication depends on the realm used by user on Proxmox server.
|
9. After you configure your server correctly, you will see a following screen.
You can check connection with Proxmox server. To do so, simply press 'Test Connection' as shown on the screen below.
|
10. It is time to create a server group. To do so, click on 'Create New Group' .
|
11. Enter name, click on your previously created server, press 'Add' and afterwards 'Save Changes' .
|
Configuration of Product
12. In order to create and configure a product go to 'Setup' → 'Products/Services' → 'Products/Services' .
Click on 'Create a New Group' .
|
13. Enter product group name and press 'Save Changes' .
|
14. When you have a product group, you are able to create your product.
To create a product click on 'Create a New Product' .
|
15. Afterwards, choose your product group and type from dropdown menus, enter your product name and press 'Continue' .
'Product Type' should be set to 'Dedicated/VPS Server' in order to add nameservers later.
|
16. Now, go to 'Module Settings' section, choose both 'ProxmoxCloud' and your previously created server group from dropdown menus.
Next, click on 'Save Changes' .
|
17. From dropdown menus choose 'Virtualization Type' , 'Default Node' , 'Template & ISO Storage' and 'User Permission' .
You can also choose how often bandwidth usage should be counted.
Afterwards, press 'Save Changes' .
Note: If you choose 'Auto-Node' as 'Default Note', new virtual servers will be created on the least used node.
|
18. Setting of KVM virtualization type (skip, if you have chosen OpenVZ virtualization type).
From dropdown menus choose 'KVM OS Type' , 'Default Storage' , 'Disk Type' and 'CD/DVD-ROM Type' .
Additionally, choose ISO images available for your clients by marking them in 'ISO Image' .
Set network through selecting from 'Network Mode' , 'Network Model' and 'Bridge' dropdown menus.
Type your VM description in 'Container Description' , set backup location in 'Storage' dropdown menu and click 'Save Changes' .
|
19. Setting of OpenVZ virtualization type (skip, if you have chosen KVM virtualization type).
From dropdown menus choose 'OpenVZ OS Templates' , 'Default Storage' , 'Network Mode' and 'Bridge' .
Type your virtual servers description in 'Container Description' and press 'Save Changes' .
|
20. The next step is setting up configuration of backups.
Define backup settings in 'Backups' section through selecting values from 'Storage' and 'Backups Routing' dropdown menus.
Backups routing automatically removes the oldest backup when a new backup is created and a backup limit is reached.
Additionally, you can limit the time period for storing backups by providing the number of days into 'Store The Backup For N Days' field.
Furthermore, you can define firewall rules limit and interface to apply rules to.
Finish configuration at 'Module Settings' tab through pressing 'Save Changes' .
|
21. The final step is generating custom fields and deciding whether to set up product with static or configurable resources.
Press 'Generate default' next to 'Custom Fields' .
Static Resources: Fill in the fields in 'Default Configuration' section with desired values.
Configurable Resources: Click on 'Generate Default' next to 'Configurable Options' .
Press 'Save Changes' in the bottom of the page.
|
22. In the end of product configuration you have to add cron job shown below (each 5 minutes suggested).
php -q /your_whmcs/modules/servers/proxmoxCloud/cron/cron.php
Do not forget to replace 'your_whmcs' with your WHMCS root location.
|
Congratulations! You have just finished the installation and configuration of the module.
|
Configuration of Addon
20. Adding a new IP address.
In order to create a new product you have to add dedicated IP pool to 'IP Addresses' list in 'Proxmox' addon module.
To do so, go to 'Addons' → 'Proxmox Addon' → 'IP Management' and press 'New IP Addresses' .
Note: You can add both IPv4 and IPv6 addresses.
|
21. Type desired IP and mask in 'IP Pool' and choose server from a 'Server' dropdown menu.
Afterwards, press 'Add Pool' .
|
22. You are now able to create new virtual machines at product.
If you used KVM virtualization type, the client area of successfully created product should look similar to the one on the screen below.
|
23. The client area of product using OpenVZ virtualization type looks quite similar.
|
Management
Proxmox Cloud For WHMCS allows your customers to manage their PVE accounts via client area in your WHMCS system.
You can monitor and manage each product from your WHMCS admin area.
To view VM details(1), migrate VM(2) or update VMs node(3), press a specific button.
To view details of virtual server created by your client simply press 'Load Status' button.
|
On the following screen you can see loaded details of the VM as well as opened migration popup.
Migration is useful when you want to request migration from the WHMCS admin area, while editing node is useful for updating details after migrating VM from Proxmox panel.
|
Management of Addon
In 'Addons' → 'Proxmox Addon' → 'Server List' you can find servers you have configured.
To see what product was created and assigned to your Proxmox server simply click on its 'Server Name' .
|
As you can see on the screen below, you can find a lot of useful information here like e.g. IP Address, VM ID or VM Type.
|
At the 'IP Management' tab you can add, edit and remove IP addresses from Proxmox products.
|
'Clusters' tab contains clusters list. To view information about a cluster simply press its name.
|
Here you can find various information about a cluster, from available resource to their usage graphs.
|
Templates Management
You can easily convert any VM on your server to a template.
In order to convert VM, go to 'Proxmox Addon' → 'Templates' → 'Create Template' .
Choose server on which VM to convert exist and press 'Next Step' .
Important: VM will be destroyed in the process.
|
Next, choose node and VM to convert.
Fill 'Template Friendly Name' and press 'Save Changes' .
|
To access the list of all available templates go to 'Proxmox Addon' → 'Templates' → 'Show Templates' .
|
Client Area
Client area interface of Proxmox Cloud For WHMCS allows your clients to create their own virtual servers.
They can also view resources used and manage existing virtual servers.
|
In order to add a new server, press 'Add New Server' button.
|
Afterwards, enter 'Hostname' , 'Nameserver 1' , 'Nameserver 2' and 'Root Password' .
Choose 'Template' from a dropdown menu and select resources for your server by using sliders.
Instead of using the sliders you can also enter resources values into textboxes.
Confirm creation through pressing 'Add New Virtual Server' .
|
To manage your virtual server simply press 'Manage' button next to it.
You can find information about managing your virtual servers in next section.
|
If you do not need a particular virtual server anymore, press 'Delete' button to remove it.
|
Client Area - VM Management
Client area interface of virtual server should look like the one on the screen below.
As you can see, control panel contains useful options needed for managing VPS.
The module allows your customers to easily boot(1), stop(2), reboot(3) and shutdown(4) their servers through pressing a specific button.
Clients can also edit(5) server, access VNC(6) and SPICE(7) consoles and view the graphs of resource usage(8).
Additionally, they are able to create backup(9), set up backup jobs(10), access task history(11) and manage network devices(12).
They can also find here server details(13) and IP addresses assigned to the server(14).
|
Edit VM
Edit feature allows you to change server details and resources except 'Template' and 'Password' . To edit your server, click on 'Edit VM' (5) button.
|
Afterwards, alter options you desire and confirm through pressing 'Save Changes' button.
|
VNC Console
VNC console allows your clients to remotely manage the server. To access it, simply press the 'VNC Console' (6) button.
Console requires Java software and you need to accept security risk to run it.
|
SPICE Console
Spice console(7) enables you to connect with virtual machine using SPICE.
Note: Your client needs to download and install client side SPICE application in order to connect with VM.
|
Usage Graphs
Under 'Usage Graphs' (8) page, a client can find graph with CPU usage, memory usage, network traffic and disc I/O.
They can also switch the timeline of the graphs by choosing it from a dropdown menu pointed on the following screen.
|
Backup
To create a single backup, press 'Backup' (9) button and click on 'New Backup' as shown on the following screen.
|
Now choose 'Compress Dump File' and 'Backup Mode' from dropdown menus.
Afterwards, press 'Add Backup' .
|
To restore VM from a backup simply press 'Restore' and then click 'OK' button in a popup window to confirm.
|
Backup Jobs
By pressing 'Backup Jobs' (10) in the client area, you will be carried to a backup jobs management page.
To add a new backup job press 'New Job' as shown on the following screen.
|
Now, define backup time, mark days to run it and choose 'Compression Dump File' and 'Backup Mode' from dropdown menus.
Next, press 'Add' button.
|
Task History
All changes of VM status are listed in 'Task History' (11).
Additionally, each access to the VM through SPICE console is shown here.
|
Network
'Network' (12) tab allows your clients to view their VM's network interface.
Depending on the settings of the product, they can also create/remove them.
|
Firewall
Owing to 'Firewall' page, your clients can set up firewall rules and enable security group for theirs servers from your WHMCS client area.
As you can see, you can easily modify and remove a previously added rules and security groups.
To add a new firewall rule (1) or predefined security group(2) use the buttons marked on the following screen.
|
You can add a firewall rule in two ways. Both of them require choosing direction, action, interface, source and destination.
The first way (red) is by choosing macro from a 'Macro' dropdown field.
The second way (blue) consist of choosing protocol and filling source and destination ports out.
Additionally, you can enable rule and add a comment to it.
Press 'Add' to create a rule.
|
Inserting a security group consists of choosing security group and interface on which group has to be used.
Additionally, you can enable security group and add a comment to it.
Click 'Add' to use the security group.
|
IP Manager Integration
Owing to integration with IP Manager For WHMCS you are able to easily create pools of IP addresses and assign them to desired products.
1. Proceed to IP Manager For WHMCS → IP Pools tab in order to prepare IP addresses pool for Proxmox Cloud For WHMCS.
2. Edit a previously created IP addresses pool and create custom field 'MAC Address' with desired MAC address at each IP address in the pool.
More about creating custom fields can be found here.
|
3. Afterwards, create a new configuration and assign a previously created pool to it.
Note: Multiple IP addresses pools can be assigned to a single configuration.
4. Now, link the configuration with Proxmox Cloud product via product, server or configurable option.
On the following screen we have linked them via a configurable option assigned to the Proxmox Cloud product.
|
5. Now, enable integration by proceeding to '3rd Party Integration' tab.
Press 'Activate' next to 'proxmoxVPS' module type as shown on the following screen.
|
5. Next, assign a previously created configuration to the submodule.
Press 'Configure' , choose the configuration and press 'Save Changes' .
|
Importing VM
Our module allows you to easily import VM into your cloud product.
To do so, press 'Import VM' as shown on the following screen.
|
Afterwards, select the node on which the server exists and fill in both 'VMID' and 'Password' fields.
Confirm importing through pressing 'Save Changes' button.
Note: If you fill in 'Password' field with an incorrect value, import will be completed successfully but some features may not work for that VM.
|
Custom Hooks
Our module allows you to use custom hooks, all you need is knowledge of PHP programming language.
Custom hooks are placed in 'your_whmcs/modules/servers/proxmoxCloud/customhooks.php' .
You can find there all custom hook and basic information about them.
Full list of available custom hooks:
proxmoxCloud_beforeCreateVM
proxmoxCloud_afterCreateVM
proxmoxCloud_beforeTerminateVM
proxmoxCloud_afterTerminateVM
proxmoxCloud_beforeCreate
proxmoxCloud_afterCreate
proxmoxCloud_beforeTerminate
proxmoxCloud_afterTerminate
proxmoxCloud_afterSuspend
proxmoxCloud_afterUnsuspend
proxmoxCloud_afterIPAdditionByAdmin
proxmoxCloud_afterIPDeletionByAdmin
proxmoxCloud_afterIPAdditionByUpgrade
|
Configurable Options
When you successfully set up a product, your clients can order it by choosing from the default configurable options.
|
If automatically generated configurable options do not seem to fulfill your clients needs, you can edit them using this guide.
|
If you decide to set up pricing per server resource ordered, you can find instruction to proceed here.
|
Management of Billing
When you combine Proxmox Cloud For WHMCS with Advanced Billing For WHMCS, you will be able to set up additional billing options.
Module allows you to charge your customers basing on the server resources used by them.
|
With Advanced Billing For WHMCS module, you can also display your customers current server resource usage and their cost.
|
Tips
1. Operations performed on the virtual servers are not executed immediately. Give your Proxmox Virtual Environment some time for processing the request and execution of operation.
|
Common Problems
1. When you have problems with connection, check whether your SELinux or firewall does not block ports.
|