Previous page

Next page

Locate page in Contents

Print this page

Managing Container Resources Configuration

Any Container is configured by means of its own configuration file. You can manage Container configurations in a number of ways:

  1. Using configuration sample files shipped with Virtuozzo. These files are used when a new Container is being created (for details, see Virtuozzo Containers). Currently, the following configuration sample files are provided:
    • basic. Use it for creating standard Containers.
    • confixx. Use it for creating Containers that are to run the Confixx control panel.
    • vswap.plesk. Use it for creating Containers with the Plesk control panel.
    • vswap.256MB. Use it for creating Containers with 256 MB of main memory.
    • vswap.512Mb. Use it for creating Containers with 512 MB of main memory.
    • vswap.1024Mb. Use it for creating Containers with 1024 MB of main memory.
    • vswap.2048Mb. Use it for creating Containers with 2048 MB of main memory.

      Note: Configuration sample files cannot contain spaces in their names.

    Any sample configuration file can also be applied to an existing Container. You would do this if, for example, you want to upgrade or downgrade the overall resources configuration of a particular Container:

    # prlctl set 101 --applyconfig basic

    This command applies all the parameters from the ve-basic.conf-sample file to Container 101.

    When you install Virtuozzo on your Hardware Node, the default Container samples are put to the /etc/vz/conf directory. They have the following format: ve-<name>.conf-sample (for example, ve-basic.conf-sample).

  2. Using specific utilities for preparing configuration files in their entirety. The tasks these utilities perform are described in the following subsections of this section.
  3. The direct creating and editing of the corresponding Container configuration file (/etc/vz/conf/<CT_ID>.conf). This can be performed with the help of any text editor. The instructions on how to edit Container configuration files directly are provided in the four preceding sections. In this case you have to edit all the configuration parameters separately, one by one.