vz-start − Container’s startup configuration script
/etc/sysconfig/vz-scripts/vz-start
The vz-start script is called by vzctl(8) just before CT is started. The script can be any executable file and is usually a shell script. It can be used to perform any additional setup of the CT such as network setup.
Parameters are passed to the script in the form of environment variables. Currently only two variables IP_ADDR and VE_ID are defined.
IP_ADDR |
IP address(es) assigned to the CT. | ||
VE_ROOT |
Root directory of given CT. | ||
DIST |
Name of the distribution this CT runs (like redhat-7.1). Used for script to do distribution-dependent setup. |
The script is expected to return 0 on success, any other return code will be printed by vzctl, but the CT booting will not be terminated.
vzctl(8).
Copyright (c) 1999-2015 Parallels IP Holdings GmbH. All rights reserved.