Commit 341789d6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add createvps_ip_local.sh

parent 5d248d50
#!/bin/bash
VEID=$1
HOSTNAME=$2
VEIP=$3
NAMESERVERS="--nameserver 192.168.0.210"
NAME="$(echo "$HOSTNAME" | sed -e "s/\..*//g")"
IF=brlocal
vzctl create $VEID --ostemplate=etersoft-p8
vzctl set $VEID --hostname $HOSTNAME --name $NAME --onboot yes $NAMESERVERS --save
vzctl set $VEID --tcprcvbuf unlimited --kmemsize 40M:45M --numproc 512 --save
vzctl set $VEID --physpages 1G --swap 512M --privvmpages 1.5G --dcachesize unlimited --save
vzctl set $VEID --netif_add $IF,,,,$IF --save
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment