All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
vzctl - Create OpenVZ Container
Hi,
I've been using this to create my openvz containers and i was wondering if i'm doing something wrong/should i set some other options?
cid=101
ostemplate=ostemplatehere-4
diskspace=2G
ip_address=10.11.1.7 # i use nat/port forward
dedicated_ram=1024M
swap_ram=512M
vps_hostname=s3.ejl.im
vzctl create ${cid} --ostemplate ${ostemplate} --config basic
vzctl set ${cid} --diskspace ${diskspace} --save
vzctl set ${cid} --hostname ${vps_hostname} --save
vzctl set ${cid} --ipadd ${ip_address} --save
vzctl set ${cid} --nameserver 8.8.8.8 --nameserver 8.8.4.4 --save
vzctl set ${cid} --onboot yes --save
vzctl set ${cid} --vmguarpages ${dedicated_ram} --save
vzctl set ${cid} --oomguarpages ${dedicated_ram} --save
vzctl set ${cid} --privvmpages ${dedicated_ram} --save
vzctl set ${cid} --swap ${swap_ram} --save
vzctl set ${cid} --kmemsize $((109977602)):$((109977602)) --save
vzctl set ${cid} --devnodes net/tun:rw --save
vzctl set ${cid} --devices c:10:200:rw --save
vzctl start ${cid}
vzctl exec ${cid} mkdir -p /dev/net
vzctl exec ${cid} chmod 600 /dev/net/tun
I use some of these containers with java, so if anyone could suggest some tuning options i should use, please tell me.
Comments
What kernel version are you using? 2.6.18 or 2.6.32?
If using 2.6.32, privvmpages should be set way higher than the ram+vswap limit
@Damian
@dmmcintyre3
[root@node ~]# uname -a
Linux host.name 2.6.32-042stab068.8 #1 SMP Fri Dec 7 17:06:14 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
why you dont use a free panel? like vtonf or webvz
@dedicados both look abandoned, do they even support vswap?
I like to add some "read -p" to my scripts so that I don't have to edit it everytime.
I tried http://code.google.com/p/ovz-web-panel/ last week and it seemed very functional, but still slower than just a script.
There's always SolusVM
@smooch1502 here are a list, you can test them
http://wiki.openvz.org/Control_panels
vtonf was good, but never updated.