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


If you plan to sell virtual machines with a specific configuration, enter the name of the configuration in the VPS template field. Otherwise, enter into the field any value that does not match the name of any of the configurations in VMmanager.

Read more about configurations in Configurations of virtual machines in VMmanager documentation.

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.

      For example, in the Domain template field, the default value is "@USERNAME@.example.com". The username is "john". The client didn't specify a domain name in the "Domain name" field. Therefore, VMmanager will create a virtual machine with the domain name "john.example.com". 

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.

Add-onInternal nameType
CPU numberncpu, cpu_numberInteger
RAMmem, ram_mibInteger (MiB, GiB)
Disk spacedisc, disk, hdd_mibInteger (MiB, GiB)

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:

  1. Go to ProductsTariff Plans → select a rate plan → click Options.
  2. Create a resource with the condition Edit resource after order "Upgrade only".

Additional parameters

Add-onInternal nameType
IPv6 subnetipv6subnetBoolean (Yes/No)
IPv6 subnet prefixipv6subnet_prefixEnumeration
BridgebridgeEnumeration
Space for imagesimagesizelimitInteger
Private IPv4-addressprivateipInteger
Backup schedulebackup_scheduleEnumeration

Fine-tuning

Add-onAvailable in clustersInternal nameTypeDefault value
CPU emulation modeKVMcpu_modeEnumeration"default"
CPU modelKVMcpu_custom_modelEnumeration"unknown"
CPU usage weightKVMcpu_weightInteger (100-10000)1024
LXDInteger (0-10)5
I/O usage weightKVMio_weightInteger (100-1000)500
LXDInteger (0-10)5
Network weightLXDnet_weightInteger (0-10)5
Process countLXDprocess_numberInteger (0-∞)0
BandwidthKVM, LXDflat, net_bandwidth_mbitpsInteger (Kbit/s, Mbit/s)
Incoming trafficKVM, LXDinbound, net_in_mbitpsInteger (Kbit/s, Mbit/s)
Outgoing trafficKVM, LXDoutbound, net_out_mbitpsInteger (Kbit/s, Mbit/s)
Disk read speedKVM, LXDio_read_mbitpsInteger (Kbit/s, Mbit/s)
Disk write speedKVM, LXDio_write_mbitpsInteger (Kbit/s, Mbit/s)
Read operations per secondKVM, LXDio_read_iopsInteger (IO/s)
Write operations per secondKVM, LXDio_write_iopsInteger (IO/s)
AntispoofingKVM, LXDanti_spoofingBoolean (Yes/No)Yes

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 ProductsEnumerations → 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 planConfig → Add and create the add-on "IPv6 subnet" with the value "Boolean (Yes/No)".

Note

 For the correct operation of the tariff plan, we recommend disabling the add-on "IPv6 addresses": Products → select the tariff planConfig → IPv6 addresses Disable.

You can enable or disable the add-on "IPv6 subnet" for a certain service in Products Products/ServicesVirtual 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:

  1. Create a list of prefixes available for ordering:
    1. Enter ProductsEnumerationsIPv6-subnet prefixValues.
    2. Press Add and specify the prefix parameters:
      1. The name to be displayed to the client.
      2. Internal name. Must be <prefix> or subnet_<prefix>. For example, 124 or subnet_124.
  2. Add prefix settings to the tariff:
    1. Enter ProductsTariff plans → select the tariff → OptionsAdd.
    2. 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


The Bridge addon must be used in conjunction with the IP Address Pool addon.

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:

  1. Add the addon to the product type:
    1. Go to ProductsProduct typesVPS → click Details.
    2. Click Add and specify the parameters:
      1. Internal name — specify "bridge".
  2. Add the enumerations:
    1. Enter ProductsEnumerations → select bridge → click Values.
    2. Click Add and specify the parameters:
      1. Specify the bridge names from VMmanager 6.
  3. Add an additional resource for the tariff:
    1. Enter ProductsTariff plans → select a tariff → click Options.
    2. Click Add and specify the parameters:
      1. Type — select "bridge".
      2. Value type — select "Enumeration".
      3. Enumeration — select "bridge".
      4. 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:

  1. Configure the pools available for selection:
    1. Enter ProductsEnumerationsIP poolValues button.
    2. To add a pool, press the Add button and specify the pool parameters:
      1.  Name — name of the pool in the tariff description;
      2. Internal name — the name of the pool in VMmanager.

        Note

        The internal name "*" means that VMmanager can assign an IP address to VM from any available pool in the cluster.

  2. Enter ProductsTariff plans → select the tariff → Options button Add button.
  3. Create the "IP pool” addon with the type of value "Enumeration".

Space for VM images


To sell disk space for images of virtual machines: 

  1. Go to Products Tariff plansConfig → Add
  2. Select "Client can choose" in the Billing type field.
  3. Enter any Name, for example, "Space for images". 
  4. Specify other parameters and click on Ok
  5. Go to Products → select the tariff planConfig → select the newly created add-on→ Prices.
  6. Create an option that will allow your customers to cancel a disk for images: 
    1. Specify "Do not bill" in the Billing type field.
    2. Select the Type "Disk for images".
    3. Select "Integer" in the Value type field.
    4. Enable the option Custom name and enter a Name of the list element. For example, "Do not buy space for images".
    5. Enter "0" in the "Tariff includes" field of the Tariff limits section.
    6. Click on Ok to save the parameters. 
  7. Create an option to allow your customers to order a disk for images:
    1. Select "Based on order" in the Billing type field. 
    2. Select "Disk for images" in the Type field.
    3. Select "Integer" in the Value type field.
    4. Select "By the nearest value" in the Values scale field. 
    5. Select the  "Only upgrade" in the Resource modification after order field. 
    6. Enable the option Custom name and enter a Name of the list element. For example, "Buy space for images".
    7. In the Tariff limits section, enter parameters according to your needs. 
    8. 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.