# you need force assign context identify S_CONTEXT=101 # Setup VPS's virtual interfaces: # VDEVCFG="ethV:ethH:speed:flag,[flag...] ..." # where: # ethV - the virtual interface (eth0, eth1 ...) # ethH - the host interface to which you want to attach the virtual interface # speed - speed limit for this interface with 64k-step (i.e.: 128k, 384k, 8M) # flag - virtual interface's flags (see man 8 vifconfig for detail) # For example: # VDEVCFG="eth0:eth0:0 eth1:eth0:128K:local eth2:eth1:2M:-local" # Setup IPv4 addresses for VPS's virtual interfaces # These addresses must be unique for whole server's interfaces and aliases addresses # A virtual interface may have more than one address. # IPCFG="ethV:IPv4Address:Netmask ..." # For example: # IPCFG="eth0:192.168.2.3:255.255.255.0 eth1:10.100.0.254:255.255.255.248" # You can define on which device the IP alias will be done # The IP alias will be set when the server is started and unset # when the server is stopped #ONBOOT=yes # You can set a different host name for the vserver # If empty, the host name of the main server is used S_HOSTNAME= # You can set a different NIS domain for the vserver # If empty, the current on is kept # Set it to "none" to have no NIS domain set S_DOMAINNAME= # You can set the priority level (nice) of all process in the vserver # Even root won't be able to raise it S_NICE= # You can set various flags for the new security context # lock: Prevent the vserver from setting new security context # sched: Merge scheduler priority of all processes in the vserver # so that it acts a like a single one. # private: No other process can join this security context. Even root # Do not forget the quotes around the flags S_FLAGS="" # You can set various capabilities. By default, the vserver are run # with a limited set, so you can let root run in a vserver and not # worry about it. He can't take over the machine. In some cases # you can to give a little more capabilities (such as CAP_NET_RAW) # S_CAPS="CAP_NET_RAW" S_CAPS="CAP_NET_ADMIN CAP_NET_RAW" ################### # List of devices (separated with spaces) enabled for virtual server # character devices: # permit /dev/null # CHAR_DEV="1.3" # block devices: # permit /dev/sda1 # BLOCK_DEV="8.1" # more info at vaccess(8) ########## Context Limts # disk limit by default in MB DLIMIT=0 #file handles limit - simular sysctl fs.file-max FILELIMIT=0 #limit number of processes inside VPS PLIMIT=0 # total memory limit in MB MLIMIT=0 # resident memory limit in MB RSSLIMIT=0 # limit number of tcp established sessions TCPLIMIT=0 # hard CPU usage limit for VPS. HARDCPU=0 # Guaranted percent of cpu usage for VPS. SOFTCPU=0 # for more info look into vserver_limit(8) ##########