OpenStack VPS For Blesta
About OpenStack VPS For Blesta
|OpenStack VPS For Blesta is a module which lets you automate the provisioning and handling of customized virtual servers to your customers.|
The great benefit of this module is a wide range of supported options customers can order and manage right in your own Blesta client area.
- Admin Area Features:
|✔ Create/Suspend/Unsuspend/Cancel Server|
|✔ View Server Status And Details|
|✔ View Interface Details|
|✔ View List Of Scheduled Tasks|
|✔ Configure Client Area Features Per Product|
|✔ Define Backup Quantity Limit|
|✔ Enable Backups Routing|
|✔ Set Security Groups|
- Client Area Features:
|✔ View Server Status And Details|
|✔ Start/Stop/Pause/Unpause Server|
|✔ Reboot Server - Soft/Hard|
|✔ Rebuild Server|
|✔ Reset Network|
|✔ Access noVNC Console|
|✔ Create/Restore/Delete Backups|
|✔ Download Public & Private SSH Keys|
|✔ View List Of Scheduled Tasks|
- Available Configurable Options:
|✔ VM Image|
|✔ IP Addresses|
|✔ Backups Files Limit|
- Required Components:
- General Info:
|✔ Automated Generation Of SSH Keys - Public SSH Key Is Injected To VM Automatically|
|✔ Multi-Language Support|
|✔ Supports OpenStack Ocata and Previous|
|✔ Supports PHP 5.4 Up To PHP 7|
|✔ Supports Blesta V3 and V4|
Installation and Configuration
|In this brief tutorial we will show you how to successfully install and set up OpenStack VPS For Blesta.|
We will guide you step by step through the whole installation process.
|1. Log in to your client area and download the module.|
|2. In the downloaded file you will find two packages that support different PHP versions.|
As presented on the screen below, the first one is dedicated to PHP 7, while the second one is aimed at PHP 5.4 up to PHP 5.6.
It does not apply to open source versions.
|3. Extract the downloaded file and choose the one with the right PHP version. Upload and extract the PHP file into the main Blesta directory.|
The content of PHP version files should look like this.
|4. When you install OpenStack VPS For Blesta for the first time you have to rename 'license_RENAME.php' file.|
File is located in 'components/modules/openstack/license_RENAME.php'. Rename it from 'license_RENAME.php' to 'license.php'.
|5. 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'.
|6. The last step is setting up a cron job (each 5 minutes suggested).|
Use cron job below but switch 'your_blesta' with your root Blesta path.
php -q /your_blesta/components/modules/openstack/cron/cron.php
|Now, you have to install the module in your Blesta system.|
Log in to your Blesta staff panel and proceed to 'Settings' → 'Modules' → 'Available'.
|Next, you may move to the second part of configuration.|
Press 'Manage' under installed OpenStack VPS module.
|Here, you have to enter any data required to connect your Blesta with OpenStack VPS server.|
Enter details to connect with your server:
Finally, test connection, if it is successful save your account.
|At this moment you should also generate default configurable options.|
Press the button and your clients will be allowed to compose their VM within the allowed limits.
|That is all! Your Blesta is now connected with OpenStack VPS server.|
|Before you can offer virtual machines for sale you must create some packages with configured products and pricing.|
Go to 'Packages' → 'Browse' and press 'Create Package'.
|You will see an extensive form. Start with naming your package, select module - 'OpenStack' and activate it now.|
At this moment you also have to generate configurable options that will allow your clients to adjust the product they purchase to their needs.
|Next, configure your module options.|
Start from selecting 'Default Tenant'.
|Afterwards, set up network. Choose 'Fixed Network', 'Floating Network' and 'Default Number Of IP Addresses'.|
You can set up network in two ways. Find more information about the configuration here.
|At this step you can set up backups.|
Mark 'Backups Routing' checkbox if you want to replace oldest backup with newest one when backups file limit is reached.
|Mark security group from 'Use Security Groups'.|
If you wish to use SSH keys, leave 'Inject SSH Key' marked (virtualization has to support 'Inject File' feature).
|Finish through selecting features available at the client area.|
Mark checkbox next to feature in order to enable it.
|In the next step set your prices and provide the content of a welcome email if you wish.|
|Finally, select a group to which the package will belong to. If you do not have any groups yet, you may quickly create one right now.|
Do not forget to press 'Create Package' button in the end.
|Your package is ready now, create as many packages as you need to diversify your pricing offer.|
|Once you have your package ready, you have to create a new order form. Move to 'Packages' → 'Order Forms' and press 'Add Order Form'.|
|Provide 'Basic' settings for the order form that will be assigned to your previously created package.
Press 'Add Form' when everything is ready.
|OpenStack VPS For Blesta allows your customers to manage their OpenStack VPS via client area in your Blesta system.|
You can monitor and manage each product from your admin area.
1. Basic information on the service.
4. Here you can find VPS details and refresh them through pressing 'Refresh Details' icon.
|Owing to configurable options, you are able to offer product which your clients can tailor according to their needs.|
Additionally, you are able to set up pricing for each configurable option, which makes your offer even more competitive.
|Client area interface of OpenStack VPS should look like the one on the screen below.|
As you can see, control panel contains all the most important information on the virtual machine.
|Module allows your customers to easily start/stop, pause/unpause, soft reboot, hard reboot and reset network of their servers through pressing specified button.|
Clients can also rebuild the server, access noVNC console, create a backup and view scheduled tasks.
|Rebuild feature allows your clients to change server image.|
To reinstall your server, choose an image and confirm through pressing 'Rebuild' button.
|Your customers can also create a backup of VPS. To do so, press 'Backups' button.|
Now, provide backup name and press 'Backup Now' button.
|To restore VPS from backup, simply press 'Restore' button next to it.|
|Anothe functionality, access to noVNC console, seems to be one of the most crucial. Thanks to it, your clients can remotely manage server.|
To access it, simply press the 'Console' button.
|noVNC is a browser based VNC client. It was implemented using HTML5 Canvas and WebSockets.|
|SSH key pair is generated automatically by OpenStack VPS For Blesta.|
Public SSH key is automatically injected into VM while private key can be downloaded from the client area.
|Public SSH key on the other hand, can be downloaded as many times as your client will need it.|
Press 'Download Public Key' as shown on the following screen to save it on your disk.
Network Configuration Cases
|OpenStack VPS For Blesta allows you to set up two types of network.|
The first one is a network without floating IP address.
|Second type of network is a network with floating IP address.|
Select 'Shared Network' as 'Fixed Network' and 'Public' as 'Floating Network'.
|In case standard configuration does not fit your needs, you can adjust it through configurable options.|
To do so, go to 'Packages' → 'Options' and find the group of configurable options used by your product.
|Now we will show you how to edit options. Let's say that you want to add an option to order VPS with 8GB (8192 MB) RAM.|
To do so, edit 'RAM' by pressing edit button as shown on the screen below.
|To add new option, press 'Add Additional Option'.|
|Then enter the new option name and value in a textbox under all other options.|
If you want to replace it with option you currently have, simply edit its textbox.
|1. Please be advised that using Debug Mode on production system is not recommended.|
It may cause plenty of error messages being displayed and interrupting flawless work unnecessarily.
|1. When you have problems with connection, check whether your SELinux or firewall does not block ports.|