ve-veconfig − vzctl helper script for setting various CT parameters
/etc/sysconfig/vz-scripts/ve-veconfig
The ve-veconfig script is called by vzctl(8). Its purpose is to set various parameters for given CT.
Parameters are passed to the script in the form of environment variables. The following variables can be defined:
HOSTNM |
Sets CT hostname to be name. This is done by modifying CT’s /etc/hosts and /etc/sysconfig/network (in RedHat or RedHat-like based CT) or /etc/rc.config (in SuSE-based CT). |
SEARCHDOMAIN
Sets CT resolver’s search list for host-name lookup. This option modifies CT’s /etc/resolv.conf.
NAMESERVER
Sets CT name server IP address. This option modifies CT’s /etc/resolv.conf.
USERPW user:password
Sets the password for user, adding user if it does not already exists. Several --userpasswd options can be given.
IS_CRYPTED user:password
ve-veconfig assumes that the passwords specified in USERPW are encoded.
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.
vzctl(8), resolv.conf(5).
Copyright (c) 1999-2015 Parallels IP Holdings GmbH. All rights reserved.