/etc/vz/dists/distribution.conf-template is in vzctl 4.9.4-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | # Copyright (C) 2000-2010, Parallels, Inc. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# This is a distribution configuration file template.
# This configuration file is meant to run specific actions
# depending on the Linux distribution the container is running.
#
# After an action is initiated, it requests vzctl to read the configuration
# based on the value of OSTEMPLATE variable in the container configuration
# file. In case an unknown distribution is found or OSTEMPLATE is not set,
# the default configuration file default.conf is used.
#
# This script is launched inside a container on executing the following
# commands:
# vzctl start CTID
# vzctl set CTID --ipadd <ip>
#
# The script is used to configure the network settings during the container
# startup or upon the IP address(es) assignment.
# The parameters are passed as environment variables.
# Required parameters:
# VE_STATE - the state of the container; can be one of:
# starting | stopping | running
# Optional parameters:
# IP_ADDR - space-separated list of IP address(es) to be ADDED
# IPV6 - if set, IPv6 is enabled globally
# IPDELALL - if set, tells to delete all the IP addresses
#
ADD_IP=dist-add_ip.sh
# This script is launched inside a container on executing the following
# commands:
# vzctl set CTID --ipdel <ip>
# vzctl set CTID --ipdel all
#
# The script is used to delete an existing IP address(es).
# The parameters are passed as environment variables.
# Required parameters:
# VE_STATE - the state of the container; can be one of:
# starting | stopping | running
# Optional parameters:
# IP_ADDR - space-separated list of IP address(es) to be DELETED
# IPV6 - if set, IPv6 is enabled globally
# IPDELALL - if set, tells to delete all the IP addresses
#
DEL_IP=dist-del_ip.sh
# This script is launched inside a CT on executing the following commands:
# vzctl set CTID --hostname <name>
# vzctl (re)start CTID (if HOSTNAME is set in CT config)
# vzctl set CTID (when changing the capability or iptables setup,
# and CT restarting is allowed for config changes)
#
# The script is used to configure the hostname of the container.
# The parameters are passed as environment variables.
# Required parameters:
# VE_STATE - the state of the container; can be one of:
# starting | stopping | running
# HOSTNM - the hostname to be set
# (can be empty in case of --hostname '' specified)
# Optional parameters:
# IP_ADDR - the first IP address of the container
#
SET_HOSTNAME=dist-set_hostname.sh
# This script is launched inside a CT on executing the following command:
# vzctl set CTID --searchdomain <domain> --nameserver <ip>
#
# The script is used to configure DNS parameters in the /etc/resolv.conf file.
# The parameters are passed as environment variables.
# Optional parameters:
# SEARCHDOMAIN - space-separated list of search domains
# NAMESERVER - space-separated list of name server IPs
#
# Script usually modifies the /etc/resolv.conf file.
#
SET_DNS=dist-set_dns.sh
# This script is launched inside a CT on executing the following command:
# vzctl set CTID --userpasswd <user:passwd>
#
# The script is used to add a new user or change the current password.
# The parameters are passed as environment variables.
# Required parameters:
# USERPW - space-separated list of user:password pairs
#
SET_USERPASS=dist-set_userpass.sh
# This script is launched inside a CT on executing the following command:
# vzctl set CTID --quotaugidlimit <num>
#
# The script is used to set up second level quota.
# The parameters are passed as environment variables.
# Required parameters:
# VE_STATE - the state of the container; can be one of:
# starting | stopping | running
# DEVFS - container file system (usually 'simfs')
# MINOR - the root device minor number
# MAJOR - the root device major number
SET_UGID_QUOTA=dist-set_ugid_quota.sh
# This script is launched on the host system after the container creation:
# vzctl create CTID
#
# The script is used to perform certain postcreate tasks.
# The parameters are passed as environment variables.
# Required parameters:
# VE_ROOT - the path to the container root directory (i.e. mount point)
POST_CREATE=dist-postcreate.sh
# This script is run inside CT right before executing container's init:
# vzctl start CTID
#
# It is used to perform some specific pre-start hooks, currently for
# non-vz (i.e. upstream) kernels only.
#
# Parameters are passed as environment variables.
# Required parameters:
# VZ_KERNEL - 'yes' for OpenVZ kernel, 'no' for upstream kernel
# USERNS - 'yes' if user namespace is used (upstream kernel >= 3.9)
PRE_START=dist-prestart.sh
# This script is run inside CT before executing container's init:
# vzctl start CTID
#
# It is used to configure getty autostart for terminals
# /dev/tty1 (aka /dev/console) # and /dev/tty2.
#
# There are no parameters to this script.
SET_CONSOLE=set_console.sh
|