4.5. Miscellaneous Tasks

4.5.1. Setting the Backup Limit for Virtual Environments

By default, each user can create up to 3 backups of each of their virtual environments. To change the default value for both existing and new VEs, do the following on the controller:

  1. Set the backup_default_max parameter in the [DEFAULT] section of the file /usr/share/vzapi-installer/roles/api/templates/vzapi.conf.j2. For example:

    backup_default_max = 5

    This will apply the new backup limit to new VEs on compute nodes to be added to Virtuozzo PowerPanel.

  2. Run vzapi-installer computes to redeploy existing compute nodes and apply the new backup limit to new VEs on them. For more details on this command, see Deploying Compute Nodes.

  3. Set the backup limit for existing VEs. For example:

    # mysql vzapi --execute="UPDATE instances SET backup_limit=5;"


Backup directory (/vz/vmprivate/backups by default) can be changed with the prlsrvctl set --backup-path <path> command.

4.5.2. Setting the Idle Timeout

By default, users are automatically logged out of Virtuozzo PowerPanel after 24 hours of inactivity. You can change this default value by setting the expiration parameter (in seconds) in the [token] section in the file /etc/keystone/keystone.conf. For example:

expiration = 43200