VMmanager OVZ configuration file

From ISPWiki
Jump to: navigation, search

Before you start, please refer to the article describing the COREmanager configuration file as a number of parameters are taken from that file.

In this article you will find parameters that can be modified in the /usr/local/mgr5/etc/vemgr.conf configuration file. You will need to restart the control panel with the /usr/local/mgr5/sbin/mgrctl -m vmmgr exit command to apply changes.

Parameters

Syntax: write in a new line. Parameter name=value. You can view a list of parameters with the /usr/local/mgr5/sbin/mgrctl -m vemgr paramlist command

General settings

  • CopyMasterVzConf - if set to "on", the configuration file /etc/vz/vz.conf will be copied from the main server when creating a new cluster node.
  • CopyMasterSysctlConf - if set to "on", the configuration file /etc/sysctl.conf will be copied from the main server when creating a new cluster node.
  • CreateVmDisableNodeTimer - set a period in minutes to exclude a cluster node from the list of nodes available for automatic allocation. If the period is set, after VM creation that node won't be available for new allocations during a specified period, or until VM installation is complete. This value is not set by default.
  • CPULimit - CPU limit, the default value is soft, can be modified in the "Policy" setting form.
  • DefaultMigrateMethod - method of migration. Possible values vz, isp; the default value is vz; it is used for selecting a migration method (vzmigrate or a custom algorithm)
  • KernelMismatchMigrate - allows/forbids migration between cluster nodes with different versions of OpenVZ; default value on; specifying off will forbid migration between different kernels of OpenVZ.
  • Oversell - enable/disable overselling, possible values - on/off. The default value is off
  • OversellMemFactor - the amount of RAM overselling in percent. Possible values - 50-1000. The default value is 100
  • OversellHddFactor - the amount of disk space overselling in percent. Possible values - 50-1000. The default value is 100
  • OversellCpuFactor - the amount of CPU overselling in percent. Possible values - 50-1000. The default value is 100
  • ReserveHDD - Часть HDD, зарезервированная для системных нужд. Размер определяется в процентах от общего объема. Задаётся в "Политиках".
  • SwapRatio - соотношение размера файла подкачки к размеру памяти в процентах. По умолчанию 200%
  • VMRemoveDefer - delay the deletion of a VM container (in hours). Possible range 0 - 48.
  • sshPublicKey - path to the public ssh-key. The default value is [installation path]/etc/ssh_id_rsa.pub
  • sshPrivatKey - path to the private ssh-key. These keys are used for changing data between VMmanager OVZ and cluster nodes. The default value is [installation path]/etc/ssh_id_rsa
  • VmSyncEnabled - enable/disable data synchronization for virtual machines. Possible values - on/off. The default value is on
  • VmCountHardLimit - the maximum number of containers that can be created on the cluster. Default value: unlimit

Creation of containers and OS deployment

  • DefaultRecipe - recipe that will be set up by default. It is specified in the "Policy" configuration form. For more information, please refer to the article Recipes in VMmanager
  • DefaultFileSystem - this parameter enables to specify a type of the file system (ploop/simfs) that is used by default when creating containers.
  • OsInstallTimeZone - time zone, which is transmitted in macros to recipes. The value is equal to host's time zone value.
  • TrafficShaping - enable network traffic management. For more information, please refer to this article Traffic shaping

NFS

  • MainIp - primary IP address of the NFS-server. The default value is specified by VMmanager OVZ automatically.
  • NfsMountParam - nfs-storage mounting parameters. The default value is rsize=8192,wsize=8192,timeo=14,intr
  • OsTplDistributionMethod - OS templates synchronization method on cluster nodes (nfs, rsync, manual). The default value is nfs

Backups

  • BackupPriority - priority to start the backupctl process. Possible values -20 to 19, where -20 - is the highest priority, 19 - the lowest. 10 is set by default
  • BackupTimeout - timeout in minutes for vm preparation. The default value us set to unlimited

Paths

  • ostemplatedir - the directory that can be accessed through NFS on all servers. The default value is /nfsshare /nfsshare

In the configuration file specify path:

path ostemplatedir /nfsshare
  • recipecachedir - the directory to store recipes which are downloaded from repositories. The default value is - "/nfsshare/recipes/repo"
path recipecachedir /nfsshare/recipes/repo
  • recipelocaldir - the directory to store recipes which are created in VMmanager. The default value is - "/nfsshare/recipes/local"
path recipelocaldir /nfsshare/recipes/local
  • temppath - a temporary directory, the default value is /tmp. In the configuration file specify the option path:
path temppath /tmp
  • BackupTmpDir - a temporary directory for files that is used when making backup. In the configuration file specify the option path:
path BackupTmpDir var/.vemgr-backups

Notes: A control panel clears the temporary directory on a regular basis. Do not use a directory with important data as a temporary directory.

Options

Syntax: Option space name. You can view a list of options with the /usr/local/mgr5/sbin/mgrctl -m vemgr optionlist command

  • Option UserRecipes - allow users to edit recipes. A user will be able to view and read the list of recipes from repositories and those created by administrator, as well as create his own recipes that won't be available to other users.
  • Option DisableLocationCheck - Disable the function of periodic check of container location on cluster nodes. To disable you should restart the panel
  • Option CheckUniqueIP - выполнять проверку на уникальность IP-адреса при создании VM с явно указанным IP-адресом.
  • Option OfflineResize - при изменении размера диска выключать виртуальную машину.