This section describes how to configure a tariff plan with the processing module VMmanager 6. Basic configuration options can be found under How to add and configure a tariff plan.
Main settings
VPS template — the name of the template that will be used for creating a virtual machine in VMmanager. The template defines what resources including their amount a client can use. Navigate to VMmanager → Cluster settings → VM templates.
If you plan to sell virtual machines with a specific configuration, enter the name of the configuration in the VPS template field.
If you specify a non-existing template, VMmanager will create a new one automatically. The name will be taken from the "VPS template" field. The template allows a customer to use unlimited resources.
One and the same resource may be specified in the VPS template in VMmanager and in the tariff plan in BILLmanager. In that case, the parameters in the billing platform will have higher priority.
Read more about configurations in Configurations of virtual machines in VMmanager documentation.
Example: the VPS template "Standard" in VMmanager has the following limits: 2 GiB RAM and 10 GiB disk space. In BILLmanager we create the tariff plan "VPS-standard. VMmanager" based on the template of the "Standard" account. The tariff plan price includes 1 GiB RAM. Disk space is not configured.
When a client orders the service related to the tariff plan "VPS-standard. VMmanager", a virtual machine with 1 GiB RAM and 10 GiB disk space will be created.
Additional settings
- OS templates — a list of operating systems that can be installed on virtual machines that will be created based on this tariff plan. The list is uploaded automatically from VMmanager 6. You can edit the list in Products → Product types → Parameters → Values → Tariff plans;
-
Cluster — A list of clusters to host virtual machines. To use the cluster that is specified in the handler, select the Default Cluster value;
When selecting a cluster, specify only the operating system templates that are available on the selected cluster. - A default domain template is used for generating a domain name if the client didn't specify it during the order. You can use the following macros in this field:
- @USERNAME@ - account username.
- @TYPE@ - product type.
-
@ID@ - service unique identifier.
How to use a macro
Supported resources
Main parameters
The main parameters of the tariff are the number of CPU, the amount of RAM and disk space. If an existing virtual server template is specified in the tariff settings, the processing module will receive the values of these parameters from the template. If a non-existent template is specified in the settings, these parameters must be set manually.
VMmanager 6 does not provide an option to reduce disk size. You can change the size of disk space only upwards.
To disable the ability to choose to reduce disk space in a tariff plan:
- Go to Products → Tariff Plans → select a rate plan → click Options.
- Create a resource with the condition Edit resource after order "Upgrade only".
Additional parameters
Fine-tuning
If the fine-tuning values are not specified in the tariff, BILLmanager will use the values from the virtual machine configuration in VMmanager. If BILLmanager does not receive information from VMmanager configuration, the default fine-tuning values will be used when ordering a virtual machine.
You can use the "CPU model" add-on only together with the "CPU emulation mode" add-on’s value of "custom". To add CPU models to BILLmanager, go to Products → Enumerations → CPU model → Add.
The add-on "Bandwidth" is identical to the addons "Incoming traffic" and "Outgoing traffic". Use the "Bandwidth" add-on if the restrictions on incoming and outgoing traffic match. You can limit the VM bandwidth if the traffic threshold is exceeded.
In the LXD cluster, the following settings cannot be used simultaneously:
- "Disk read speed" and "Read operations per second";
- "Disk write speed" and "Writes operations per second".
How to add IPv6 subnet
To allow customers to use IPv6 subnets on virtual machines in VMmanager 6, go to Products → select the tariff plan→ Config → Add and create the add-on "IPv6 subnet" with the value "Boolean (Yes/No)".
You can enable or disable the add-on "IPv6 subnet" for a certain service in Products → Products/Services → Virtual servers → select the server → Edit → Add-ons → the option IPv6 subnet.
Configuring IPv6 subnet prefix
VMmanager allocates subnets of IPv6 addresses with a prefix from /32 to /125 for virtual machines. To enable the client to choose a subnet prefix when ordering:
- Create a list of prefixes available for ordering:
- Enter Products → Enumerations → IPv6-subnet prefix → Values.
- Press Add and specify the prefix parameters:
- The name to be displayed to the client.
- Internal name. Must be <prefix> or subnet_<prefix>. For example, 124 or subnet_124.
- Add prefix settings to the tariff:
- Enter Products → Tariff plans → select the tariff → Options → Add.
- Create the "IPv6-subnet prefix" addon with the "Enumeration” value type.
To have a default prefix specified in the order without the ability to change it, create the "IPv6-subnet prefix" add-on with the value type "Do not bill".
Adding a bridge
If additional bridges are configured on a VMmanager 6 cluster node, you can create a Bridge addon in BILLmanager. In that case, when you open a VM service, its network interface will be created with the selected bridge. Read more in the VMmanager 6 documentation article Network configuration on the cluster node.
To enable the client to select a bridge:
- Add the addon to the product type:
-
- Go to Products → Product types → VPS → click Details.
- Click Add and specify the parameters:
-
- Internal name — specify "bridge".
- Add the enumerations:
-
- Enter Products → Enumerations → select bridge → click Values.
- Click Add and specify the parameters:
-
- Specify the bridge names from VMmanager 6.
- Add an additional resource for the tariff:
-
- Enter Products → Tariff plans → select a tariff → click Options.
- Click Add and specify the parameters:
-
- Type — select "bridge".
- Value type — select "Enumeration".
- Enumeration — select "bridge".
- Default value — select the bridge to be used in the default tariff. At the time of ordering, the client can change this value by selecting the value from the list.
Selecting the pool for the VM
To allow the client to select the pool from which VMmanager will assign the IP address to the VM:
- Configure the pools available for selection:
-
- Enter Products → Enumerations → IP pool → Values button.
- To add a pool, press the Add button and specify the pool parameters:
- Name — name of the pool in the tariff description;
-
Internal name — the name of the pool in VMmanager.
NoteThe internal name "*" means that VMmanager can assign an IP address to VM from any available pool in the cluster.
- Enter Products → Tariff plans → select the tariff → Options button → Add button.
- Create the "IP pool” addon with the type of value "Enumeration".
Space for VM images
To sell disk space for images of virtual machines:
- Go to Products → Tariff plans→ Config → Add.
- Select "Client can choose" in the Billing type field.
- Enter any Name, for example, "Space for images".
- Specify other parameters and click on Ok.
- Go to Products → select the tariff plan→ Config → select the newly created add-on→ Prices.
- Create an option that will allow your customers to cancel a disk for images:
- Specify "Do not bill" in the Billing type field.
- Select the Type "Disk for images".
- Select "Integer" in the Value type field.
- Enable the option Custom name and enter a Name of the list element. For example, "Do not buy space for images".
- Enter "0" in the "Tariff includes" field of the Tariff limits section.
- Click on Ok to save the parameters.
- Create an option to allow your customers to order a disk for images:
- Select "Based on order" in the Billing type field.
- Select "Disk for images" in the Type field.
- Select "Integer" in the Value type field.
- Select "By the nearest value" in the Values scale field.
- Select the "Only upgrade" in the Resource modification after order field.
- Enable the option Custom name and enter a Name of the list element. For example, "Buy space for images".
- In the Tariff limits section, enter parameters according to your needs.
- Click on Ok to save the parameters.
On the order form, you will see the drop-down list "Space for images" with two values. For example:
- Do not buy space for images — a free option. Disk space for images won't be allocated.
- Buy space for images — a paid option that allows customers to order disk space for images. When a client selects this option, he will see the variants for this add-on on the order form. Its price is calculated based on the parameters specified in the sections Tariff limits and Prices.