Difference between revisions of "Zimbra on OpenVZ on Debian"
Botinki Kira (talk | contribs) m (Robot: Automated text replacement (-VEID +CTID)) |
(Typo "install install") |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | These are instructions for getting | + | These are instructions for getting [http://www.zimbra.com/ Zimbra] |
− | |||
to work under OpenVZ | to work under OpenVZ | ||
− | using a Debian-3.1 (sarge) base. They are | + | using a Debian-3.1 (sarge) base. They are inspired by |
[[Zimbra on OpenVZ on CentOS]]... | [[Zimbra on OpenVZ on CentOS]]... | ||
− | == Prepare the | + | == Prepare the container == |
=== Template === | === Template === | ||
Line 13: | Line 12: | ||
=== Create === | === Create === | ||
− | Create a | + | Create a container for Zimbra. Make sure it has at least 6GB of free |
disk space available. | disk space available. | ||
Line 54: | Line 53: | ||
== Add/Remove packages == | == Add/Remove packages == | ||
− | Enter the | + | Enter the container and install/remove some packages: |
+ | <code> | ||
+ | dpkg --purge exim4 | ||
+ | apt-get install sudo libidn11 curl fetchmail \ | ||
+ | libgmp3 libxml2 openssl libstdc++6 | ||
+ | apt-get install perl perl-modules libexpat1 ssh file | ||
+ | </code> | ||
+ | |||
+ | |||
+ | For Debian 4 (etch) : | ||
<code> | <code> | ||
dpkg --purge exim4 | dpkg --purge exim4 | ||
apt-get install install sudo libidn11 curl fetchmail \ | apt-get install install sudo libidn11 curl fetchmail \ | ||
− | + | libgmp3c2 libxml2 openssl libstdc++6 libltdl3 | |
apt-get install perl perl-modules libexpat1 ssh file | apt-get install perl perl-modules libexpat1 ssh file | ||
</code> | </code> | ||
Line 70: | Line 78: | ||
Check /proc/user_beancounters. If there is anything but zero | Check /proc/user_beancounters. If there is anything but zero | ||
in the <code>failcnt</code> column, start over with higher limits. | in the <code>failcnt</code> column, start over with higher limits. | ||
+ | |||
+ | [[Category:Debian]] |
Latest revision as of 09:15, 23 March 2010
These are instructions for getting Zimbra to work under OpenVZ using a Debian-3.1 (sarge) base. They are inspired by Zimbra on OpenVZ on CentOS...
Contents
Prepare the container[edit]
Template[edit]
Create a Debian 3.1 (sarge) template (Debian template creation)
Create[edit]
Create a container for Zimbra. Make sure it has at least 6GB of free disk space available.
Limits[edit]
Adjust its resource limts:
vzctl set $CTID \
--kmemsize 30000000:30000000 \
--privvmpages 2400000:2400000 \
--shmpages 256:256 \
--numproc 2000:2000 \
--numtcpsock 1000:1000 \
--numflock 10000:10000 \
--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
Warning: The above UBC values might not be consistent; see UBC consistency check. |
No Hostname[edit]
Use vzctl to give it an IP address but not a hostname:
vzctl set $CTID --ip A.B.C.D --save
Add/Remove packages[edit]
Enter the container and install/remove some packages:
dpkg --purge exim4
apt-get install sudo libidn11 curl fetchmail \
libgmp3 libxml2 openssl libstdc++6
apt-get install perl perl-modules libexpat1 ssh file
For Debian 4 (etch) :
dpkg --purge exim4
apt-get install install sudo libidn11 curl fetchmail \
libgmp3c2 libxml2 openssl libstdc++6 libltdl3
apt-get install perl perl-modules libexpat1 ssh file
Install[edit]
Download the Zimbra installation tarball, unpack it, and run "install.sh".
Verify[edit]
Check /proc/user_beancounters. If there is anything but zero
in the failcnt
column, start over with higher limits.