2
edits
Changes
Instructions of Zimbra on Debian
These are instructions for getting Zimbra
[[http://www.zimbra.com|Zimbra]]
to work under OpenVZ
using a Debian-3.1 (sarge) base. They are inpired by
[[Zimbra on OpenVZ on CentOS]]...
== Prepare the VE ==
=== Template ===
Create a Debian 3.1 (sarge) template ([[Debian template creation]])
=== Create ===
Create a VE for Zimbra. Make sure it has at least 6GB of free
disk space available.
=== Limits ===
Adjust its resource limts:
<code>
vzctl set $VEID \
--kmemsize 30000000:30000000 \
--privvmpages 2400000:2400000 \
--shmpages 32:32 \
--numproc 2000:2000 \
--numtcpsock 1000:1000 \
--numflock 100:100 \
--tcpsndbuf 640000:650000 \
--tcprcvbuf 640000:650000 \
--othersockbuf 640000:650000 \
--numothersock 1000:1000 \
--numfile 16384:16384 \
--iptables ipt_REJECT \
--iptables ipt_tos \
--iptables ipt_limit \
--iptables ipt_multiport \
--iptables iptable_filter \
--iptables iptable_mangle \
--iptables ipt_TCPMSS \
--iptables ipt_tcpmss \
--iptables ipt_ttl \
--iptables ipt_length \
--save
</code>
=== No Hostname ===
Use vzctl to give it an IP address but not a hostname:
<code>vzctl set $VEID --ip A.B.C.D</code>
== Add/Remove packages ==
Enter the VE and install/remove some packages:
<code>
dpkg --purge exim4
apt-get install install sudo libidn11 curl fetchmail \
libgmp3 libxml2 openssl libstdc++6
apt-get install perl perl-modules libexpat1 ssh file
</code>
== Install ==
Download the Zimbra installation tarball, unpack it, and run "install.sh".
== Verify ==
Check /proc/user_beancounters. If there is anything but zero
in the <code>failcnt</code> column, start over with higher limits.
[[http://www.zimbra.com|Zimbra]]
to work under OpenVZ
using a Debian-3.1 (sarge) base. They are inpired by
[[Zimbra on OpenVZ on CentOS]]...
== Prepare the VE ==
=== Template ===
Create a Debian 3.1 (sarge) template ([[Debian template creation]])
=== Create ===
Create a VE for Zimbra. Make sure it has at least 6GB of free
disk space available.
=== Limits ===
Adjust its resource limts:
<code>
vzctl set $VEID \
--kmemsize 30000000:30000000 \
--privvmpages 2400000:2400000 \
--shmpages 32:32 \
--numproc 2000:2000 \
--numtcpsock 1000:1000 \
--numflock 100:100 \
--tcpsndbuf 640000:650000 \
--tcprcvbuf 640000:650000 \
--othersockbuf 640000:650000 \
--numothersock 1000:1000 \
--numfile 16384:16384 \
--iptables ipt_REJECT \
--iptables ipt_tos \
--iptables ipt_limit \
--iptables ipt_multiport \
--iptables iptable_filter \
--iptables iptable_mangle \
--iptables ipt_TCPMSS \
--iptables ipt_tcpmss \
--iptables ipt_ttl \
--iptables ipt_length \
--save
</code>
=== No Hostname ===
Use vzctl to give it an IP address but not a hostname:
<code>vzctl set $VEID --ip A.B.C.D</code>
== Add/Remove packages ==
Enter the VE and install/remove some packages:
<code>
dpkg --purge exim4
apt-get install install sudo libidn11 curl fetchmail \
libgmp3 libxml2 openssl libstdc++6
apt-get install perl perl-modules libexpat1 ssh file
</code>
== Install ==
Download the Zimbra installation tarball, unpack it, and run "install.sh".
== Verify ==
Check /proc/user_beancounters. If there is anything but zero
in the <code>failcnt</code> column, start over with higher limits.