Previous page

Next page

Locate page in Contents

Print this page

Applying New Configuration Samples to Containers

Parallels Cloud Server allows you to change the configuration sample file a Container is based on and, thus, to modify all the resources the Container may consume and/or allocate at once. For example, if Container 101 is currently based on the basic configuration sample and you are planning to run the Plesk application inside the Container, you may wish to apply the vswap.plesk sample to it instead of basic , which will automatically adjust the necessary Container resource parameters for running the Plesk application inside Container 101. To do this, you can execute the following command on the Hardware Node:

# prlctl set 101 --applyconfig vswap.plesk

This command reads the resource parameters from the ve-vswap.plesk.conf-sample file located in the /etc/vz/conf directory and applies them one by one to Container 101.

When applying new configuration samples to Containers, keep in mind the following:

  • All Container sample files are located in the /etc/vz/conf directory on the Hardware Node and are named according to the following pattern: ve- <name> .conf-sample . You should specify only the <name> part of the corresponding sample name after the --applyconfig option ( vswap.plesk in the example above).
  • The --applyconfig option applies all the parameters from the specified sample file to the given Container, except for the OSTEMPLATE , TEMPLATES , VE_ROOT , VE_PRIVATE , HOSTNAME , IP_ADDRESS , TEMPLATE , NETIF parameters (if they exist in the sample file).

You may need to restart your Container depending on the fact whether the changes for the selected parameters can be set on the fly or not. If some parameters could not be configured on the fly, you will be presented with the corresponding message informing you of this fact.