# -*-Shell-script-*- #---------------------------------------------------- #this file define common variable needed by vzgot to #start container. #====================================================== #installation main directory VZLIB=/var/lib/vzgot #====================================================== #BRIDGENAME is the bridge interface you have configured #on your site. #to configure a bridge on the HOST (the hardware level) #----------------------------------------------------- #brctl addbr br0 #ifconfig br0 You_production_ip_number/mask up #brctl addif br0 eth0 #ifconfig eth0 0.0.0.0 #echo 1 > /proc/sys/net/ipv4/conf/br0/proxy_arp #----------------------------------------------------- BRIDGENAME="br0" #====================================================== #ETHNAME is the container interface name you want #to be renamed to, usualy named eth0 #----------------------------------------------------- #command used: if link set 'From_pid' name $ETHNAME ETHNAME="eth0" #====================================================== #CGROUP directory #this the cgroup directory location mounted by command #mount -t cgroup cgroup /the_directory #in our default configuration directory is mount on dir "/cgroup" CGROUP="/cgroup" #====================================================== #LVM device #IF SET, specify you want to use LVM (Logical Volume Management) #as device to set your virtual #such setting LVM="vzvol" will make 'vzgot create' to make #a localdevice named /dev/$LVM/$CONTNAME #Such YOU must use vgreate to prepare your $LVM Volume group #setting LVM_SIZE will override the LVM default value set in #vzgot create script. #LVM=vzvol LVM_SIZE=2G #======================================================