The default VPS configuration file is /hsphere/local/config/vserver/vps.cfg.
Below is a sample config file.
To change these parameters interactively, run the configuration script and
follow the instructions step by step.
WARNING:
1. Do not change location of the configuration file!
2. It is strongly recommended not to make changes to the configuration file manually!
#########################################################################################
# (c) #
# Distributed only with H-Sphere #
# #
#########################################################################################
#########################################################################################
# Default configuration file for #
# creation and management of Virtual Private Servers. #
# It is strongly recommended that you do not make any changes to this file manually. #
# Run [# /hsphere/shared/scripts/vps-configure.pl] #
# and perform step-by-step configuration for your virtual servers. #
#########################################################################################
# System parameters
# Linux release
LINUXCODE=undef
# FreeVPS kernel patch BUILD
BUILD=0000000001
# Virtual Servers network configuration
# Set the ONBOOT option to 'no' to disable virtual servers at boot time
ONBOOT=yes
# Boot-time protocol
BOOTPROTO=static
# You can set various capabilities. By default, the vservers are run
# with a limited set. In some cases
# you can to give a little more capabilities (such as CAP_NET_RAW, CAP_NET_ADMIN)
S_CAPS="CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_RESOURCE"
# Default gateway for virtual servers
GATEWAY=0.0.0.0
# Name server(s) IP addresses:
NAMESERVER=""
# Ethernet network device use to setup IP(s) to be assigned to the VPS.
# This is generally eth0.
# IP(s) will be configured when you start the VPS and un-configure when you stop it.
IPROOTDEV=eth0
# Set VDEVALIASE to 'yes' to enable virtual ethernet devices aliases.
# Using virtual ethernet devices aliases allow you configure up to 16 different device aliases
# (with IP address assigned)
# per each virtual ethernet device (maximum 16 different virtual ethernet devices can be created in VPS).
# So, using aliasing, you can assign up to 16x16 IP address to one VPS.
VDEVALIAS=no
# Max number of virtual ethernet devices per virtual context
MAXVDEVS=15
# Max number of virtual ethernet device aliases per each virtual ethernet device at current virtual context
# Required when device aliasing used (option VDEVALIAS=yes) only.
MAXVDEVALIASES=15
# Virtual device on which IP alias will work.
# Not urgent in this version of VPS.
VIPROOTDEV=eth0
# Vinterface controlling flags
VDEVFLAGS="local"
# Virtual Servers creating options
# Below is the list of default services initialized at virtual servers' boot time
START_SERVICES="anacron atd crond kdcrotate network random rawdevices sshd syslog xinetd vpsinit netfs
portmap gpm identd ipchains iptables nscd sendmail ypbind"
# Set ADDITIONAL to 'yes' if you want to install ADDITIONAL_PACKAGES
# and ADDITIONAL_SERVICES to be set up to start at virtual servers' boot time
ADDITIONAL=no
# Additional packages available for installation on VPS
ADDITIONAL_PACKAGES_AVAILABLE="gcc samba http sendmail php mysql postgresql mc up2date"
# Additional packages to be installed for VPS
ADDITIONAL_PACKAGES=""
# Additional services available for setup
ADDITIONAL_SERVICES_AVAILABLE="httpd sendmail mysqld postgresql rhnsd winbind"
# Additional services to be set up
ADDITIONAL_SERVICES=""
# Set CHECKRPM to 'yes' if you want all packages required to build VPS be checked.
CHECKRPM=no
# VPS log options
# Path to the log file for VPS control scripts
LOGFILE=/var/log/hsphere/vps.log
# Log file max size in Mb
LOGFILESIZE=1
# Number of log files stored.
LOGFILENUM=7
# Log detailization. Available detailizations: INFO CRON WARN ERROR FATAL TEST
# List of available types enclosed in brackets.
LOGDETAILS="INFO CRON WARN ERROR FATAL TEST syst open"
# VPS related files
#Virtual Private Server HSphere scripts package version file
HSVPS_VERSION_FILE=/hsphere/local/config/vserver/HSVPS_VERSION
# Path to the file which consists the list of known VPSs,
# and list of VPSs scheduled for deletion.
VPSLIST=/hsphere/local/config/vserver/vps.list
# File where PID of running VPSs-creating script (vps-cran.pl) is stored
CRONPID=/var/log/hsphere/vps_cron.pid
# File where PID of running VPSs-traffic script (vps-cran-traf.pl) is stored
STATCRONPID=/var/log/hsphere/stat_vps_cron.pid
# VPS working directories
# Virtual Private Server libraries
USR_LIB_VSERVER=/usr/lib/vserver
# Path to the files with RPM lists (rpm_base.cfg) required for basic Linux RedHat installation
RPMBASE=/hsphere/local/config/vserver
# Path to Linux RedHat packages (RPMS)
LINUXRPMS=/home/RedHat/7.3/RedHat/RPMS
# Path to VPS config files
VPSCONFIGS=/hsphere/local/config/vserver
# ROOT directory for all VPS servers.
VPSHOME=/hsphere/local/vservers
# Path to H-Sphere Control Panel configuration files for VPS
HSVPSFILES=/hsphere/local/config/vserver/cp
# Path where all H-Sphere VPS scripts are located
VPSSCRIPTS=/hsphere/shared/scripts
# Path where VPS statistics is stored (e.g., VPS traffic)
STATISTICFILES=/hsphere/local/var/statistic
# Path to VPS statistics files loaded to Control Panel
STATISTICLOADED=/hsphere/local/var/statistic/loaded
# Path to packages required by H-Sphere
HSINSTALLPKG=/hsphere/install/pkg
# Public key file to verify RPM packages built and signed by Red Hat, Inc.
RPM_GPG_KEY=/usr/share/doc/redhat-release-7.3/RPM-GPG-KEY
# Additional PATHs
# Binary directory
SBIN=/sbin
# Users' binary directory
USR_SBIN=/usr/sbin
# Vserver related programs
# Main 'vserver' script
VSERVER_CMD=/usr/sbin/vserver
# 'vserver_ctl' program
VSERVER_CTL=/usr/sbin/vserver_ctl
# 'vserver_limit' program
VSERVER_LIMIT=/usr/sbin/vserver_limit
# 'chcontext' program
CHCONTEXT_CMD=/usr/sbin/chcontext
# 'chroot' program
CHROOT=/usr/sbin/chroot
# 'vdu' program
VDU=/usr/sbin/vdu
# 'setattrib' program
SETATTRIB=/usr/sbin/setattrib
# 'vifconfig' program
VIFCONFIG=/usr/sbin/vifconfig
# 'ifconfig' program
IFCONFIG=/sbin/ifconfig
# 'chkconfig' program
CHKCONFIG=/sbin/chkconfig
# Additional programs and paths
#cat- concatenate files and print on the standard output program
CAT=/bin/cat
#grep - print lines matching a pattern program
GREP=/bin/grep
#awk - pattern scanning and processing language
AWK=/bin/awk
#head - output the first part of files
HEAD=/usr/bin/head
# Print system information program
UNAME=/bin/uname
# usermod - Modify a user account
USERMOD=/usr/sbin/usermod
# ps - report process status
PS=/bin/ps
# rpm - RPM Package Manager
RPM=/bin/rpm
# df - report filesystem disk space usage
DF=/bin/df
# mknod - make block or character special files
MKNOD=/bin/mknod
# touch - change file timestamps
TOUCH=/bin/touch
# mount - mount a file system
MOUNT=/bin/mount
# umount - unmount file systems
UMOUNT=/bin/umount
# crontab - maintain crontab files for individual users (V3)
CRONTAB=/usr/bin/crontab
# ln - make links between files
LN=/bin/ln
# quotacheck - scan a filesystem for disk usage, create, check and repair quota files
QUOTACHECK=/sbin/quotacheck
# utility for download files from the Web
WGET=/usr/bin/wget
# list directory contents utility
LS=/bin/ls
# sed - a Stream Editor
SED=/bin/sed
# route - show / manipulate the IP routing table
ROUTE=/sbin/route
# Path where gzip is placed
GZIPPATH=/bin/gzip
# sleep - delay for a specified amount of time
SLEEP=/bin/sleep
# gpg - encryption and signing tool
GPG=/usr/bin/gpg
# Some URLs
# URL to Linux RPMs
# VPS processes files
# VPS system calls file
SETUP=/proc/vservers/setup
# Per context running configuration
SELF=/proc/vservers/self
# Required packages
# HSphere VPS scripts package
HSVPSPACKAGE=hsphere-vps
# FreeVPS tools package
FREEVPSTOOLSPACKAGE=freevps-tools
# Linux virtual server utilities package
VSERVERPACKAGE=vserver-
|