Personal tools
Namespaces

Variants
Actions

Hosting Quota Notifications 1.X For WHMCS

From ModulesGarden Wiki
Revision as of 12:50, 1 August 2017 by Gregor (Talk | contribs)

Jump to: navigation, search

Configuration of SSH Keys (KVM)

SSH keys are required to enable automatically partition resize on disk upgrade and passwords change for KVM Virtualization type.

Note - 'Partition Resize' and 'Change Root Password' will only work for newly created VMs. We recommend using this option only for a new products.

PX2 61.png
First, create a new VM Template that you will use for KVM image.

Then generate SSH keys and add the public key to root account on the newly created VM image. Both keys ( public and private ) also upload on your WHMCS server in secure location.

PX2 62.png
Next, in your WHMCS go to the 'Proxmox Addon' 'Settings' 'SSH Keys' and press 'Add' button.
PX2 63.png
Enter the name and location to the key pairs located on your WHMCS server.
PX2 64.png
Then go back to product configuration and in ' KVM Configuration' in 'VM SSH Root Key' select the pair of keys you want to use.
Enter the SSH communication port and select features you want to use.
Make sure they match the 'KVM OS Template' you will use.
PX2 65.png
Now 'Resize Partition' and 'Change Root Password' options should become available.
  • Resize Partition - if a customer upgrades a VM with changing the disk size to a larger one, this option will automatically increase the size of the last partition in that disk to the new size allocation.
    It deletes the current partition table, then creates a new one according to the new disk size and reboots the VM machine.
    Note - in a case of any failure, all data may be lost on resized partition!
  • Change Root Password - this option is responsible for automatic password reset after VM creation and it also allows users to generate new root password during VM usage.

Note - if the customer decides to remove the public key from VM by their selfs, it will make 'Resize Partition' and 'Change Root Password' options no longer to work!

From now for newly created VMs all passwords will be generated automatically by WHMCS. The partition will also automatically resize on VM create if disk size is different than template's default.
Admin will also be able to call partition resizing on package change (if disk size was upgraded) and also set root password to the custom one in 'Product/Services' settings.

PX2 66.png
And in client area these features can be also executed from options below.
PX2 67.png
Navigation
WHMCS Modules
WHMCS Widgets
Translations
cPanel Modules
General
FAQ
Community