Commit 77799015 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add createvps_ip.sh script

parent b9bcc469
#!/bin/bash
VEID=$1
NAME=$2
VEIP=$3
NAMESERVERS="--nameserver 10.20.30.43 --nameserver 91.232.225.10"
IF=breth0
vzctl create $VEID --ostemplate=etersoft-p8
vzctl set $VEID --hostname $NAME --onboot yes $NAMESERVERS --save
vzctl set $VEID --tcprcvbuf unlimited --kmemsize 40M:45M --numproc 512 --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