|
|
|
|
Re: Starting & Stopping Multiple VPS... [message #27081 is a reply to message #26789] |
Fri, 08 February 2008 13:57 |
|
shuaib85
Messages: 59 Registered: September 2007
|
Member |
|
|
Hi guys, I have created this tiny shell script to create centos 5 templates based on the range you add
I wish it would help
echo "Enter low ID"
read low
echo "Enter high ID"
read high
for (( i=$low; i <= $high; i++ ))
{
k=`expr $i - 100`
vzctl create $i --ostemplate centos-5-x86_64-default
vzctl set $i --diskspace 4000000 --save
vzctl set $i --ipadd 192.168.0.$k --save
vzctl set $i --hostname centos5_$k --save
vzctl set $i --nameserver 10.0.0.1 --save
vzctl set $i --onboot yes --save
vzctl start $i
}
WebVZ: OpenVZ Web Management Tool
http://webvz.sourceforge.net
|
|
|