vz-start(5)

vz-start(5) File Formats Manual vz-start(5)

NAME

vz-start - Container's startup configuration script

SYNOPSIS

/usr/share/libvzctl/scripts/vz-start

DESCRIPTION

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.

DIAGNOSTICS

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.

SEE ALSO

vzctl(8).

COPYRIGHT

Copyright (c) 1999-2017, Parallels International GmbH. All rights reserved. Copyright (c) 2017-2019 Virtuozzo International GmbH. All rights reserved.

October 2009 OpenVZ