BILLmanager 5 Documentation

Tariff plan VMmanager 6

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
  • 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.

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

Additional parameters

Add-onInternal nameType
IPv6 subnetipv6subnetBoolean (Yes/No)
IPv6 subnet prefixipv6subnet_prefixEnumeration
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)".

How to add the add-on "IPv6 subnet"

Note
 For the correct operation of the tariff plan, we recommend disabling the add-on "IPv6 addresses": Products → select the tariff plan→ Config → 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.

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.

        Creating the list of available pools

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


Creating the addon

Creating a VM with two network interfaces

To enable the client to create VMs with two network interfaces:

  1. Enter ProductsTariff plans → select the tariff → OptionsAdd.
  2. Create the addon "Private IPv4-address" with the value type "Integer".

Public IP addresses will be assigned to the first VM network interface, and private addresses — to the second.

How to add the add-on "Private IPv4-address"

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 plan→ Config → 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.