Control panel policy

From ISPWiki
Jump to: navigation, search
Hierarchy: VMmanager KVM -> Cluster configuration
VMmanager Cloud -> Cluster configuration

Policies define the rules that the control panel applies in different situations. To set up the policy rules, navigate to "Cluster settings" → "Policies".

There are several policy groups:

  • main;
  • network;
  • ISO limits;
  • virtual machines.


  • Master node IP address - enter the IP address of the main node where VMmanager is installed;
  • VM timezone, VM region, VM location - default time parameters that will be applied to newly created virtual machines.
  • Overselling:

Overselling enables to offer resources to virtual machines in excess of actual supply. VMmanager allows for RAM overselling. Enter the amount of RAM that can be used for virtual machines (50%-500%).

Example: overselling amount - 200%, total RAM on the server - 8 Gb. Virtual machines will be allocated 16 Gb of RAM. Please note: the NodeReservedMemPercent parameter in the VMmanager configuration file allows to set the amount of reserved RAM on cluster nodes, in %. The default value is 0. If NodeReservedMemPercent equals 10%, when creating a virtual machine (with 512 Mb of RAM) the amount of RAM on the server should be 512 Mb + 10% from the total RAM.

Overselling can be activated provided that the server has sufficient amount of RAM</font>you cannot create a virtual machine if you want to allocate more memory than the ... free amount of RAM at the moment of its creation minus the reserved volume on the cluster node.

To view available RAM, execute

free -m. 

Available RAM is free + cached.


In this tab, you can provide network configuration parameters both for VMmanager, and virtual machines.

  • Disable anti-spoofingг - by default the system creates т anti-spoofing rules. You can disable this option if needed. Disabling the anti-spoofing rules in the global policy configuration form, anti-spoofing rules won't be created even if the corresponding option is enabled for virtual machines;
  • MAC-address prefix - enter the prefix that will be used for automatically generated MAC-addresses of VM network interfaces;
  • VNC network interface - enter a network interface, where VNC-client of the virtual machine will be availabl;
  • Use HTTPS for VNC - enable SSL for the VNC-server of virtual machines;
  • Unique IP check - check that a unique IP address is allocated for a newly created virtual machine with the specific IP address, or adding the specific IP address;
  • Name servers - enter a list of name servers that will be added to the configuration form of a newly created virtual machine during the installation;
  • HTTP proxy for IPv4 - address of the caching proxy-server through the IPv4 protocol. It is specified as http://<IP>:<Port>/, for example
  • HTTP proxy for IPv6 - address of the caching proxy-server through the IPv6 protocol. It is specified as http://[<IP>]:<Port>/, for examplehttp://[1111:2222:3333::4444]:3128/.

In the HTTP proxy for IPv4 and HTTP proxy for IPv4 fields you need to provide real IP addresses that virtual machines can connect to. If the proxy server is located on the same server with VMmanager, you cannot specify loopback-address as a parameter, as this IP must be accessible from any cluster node.

For more information about the caching proxy-server please refer to the article "squid".

ISO limits

In this module, you can set parameters for user's ISO-images. The limits you set, will be applied only to "users". In order to add an ISO-image, navigate to "Management" -> "ISO-images".

  • ISO lifetime, hours - enter the period in hours that will pass before the user ISO-image will be deleted. The default value is 24;
  • Global size limit, MiB — the maximum amount of ISO-images that a user can upload;
  • Global ISO limit — the maximum number of ISO-images that a user can upload;
  • User size limit, MiB — the maximum amount of ISO-images which is set by default when creating a user. It is specified in the "ISO size, MiB" field;
  • ISO limit per user — the maximum number of ISO-images which is set by default when creating a new user. It is specified in the "ISO number, MiB" field.

Virtual machines

In this section you can add rules for newly created virtual machines:

  • View history - select the check box to allow users to view the history of their virtual machines;
  • Recipe - select a recipe that will be executed on a virtual machine. This recipe will be executed even if it was not selected during the creation of a virtual machine. A recipe is selected from all available recipes if its name and tag matches OS template tags;
  • Allow users to edit recipes - select the check box to allow users to edit recipes;
  • Snapshot creation timeout - how many seconds VMmanager will wait for virtual machine snapshot creation process to finish;
  • Snapshots limit - enter the maximum number of snapshots that a user can make on every virtual machine;
  • Check VM activity - check that network and hard drive of a virtual machine are up and running;
  • Disable reboot on demand - postponed task is registered during the change of virtual machine configuration. The task involves reboot on demand for applying the new configuration.