OpenVZ

Install Zimbra on OpenVZ CentOS

Prepare the VPS

Before we install Zimbra, we must install the follow packages

root@HN# vzctl exec 101 yum install ant sysstat gmp compat-libstdc++-296 compat-libstdc++-33

The above list should be good enough for Zimbra 6. If installing Zimbra 5, then we also have to have:

OpenVZ Unable to open pty: No such file or directory

http://www.canfield.com/content/openvz-unable-open-pty-no-such-file-or-d... has a post to the problem on the error message

Unable to open pty: No such file or directory

Quote:

 

The fix then becomes a two step process. The first steps are done from the node, adjust your vz container ID from 101 as needed. Re-create the missing devices.

Install OpenVZ Template

http://wiki.openvz.org/OS_template_cache_preparation is where to start.

  1. To see which templates are available, run
    # yum search vztmpl
  2. To install some of the templates, run

    # yum install vztmpl-XXX [...]
  3. Run the vzpkgcache utility; see the vzpkgcache(8) man page for details. It will create or update the caches of all the templates for which the corresponding metadata exist.

Create OpenVZ Template

Based on http://www.neonhost.com/openvz/. This shows how to create a CentOS 5 OpenVZ template based on CentOS-4 OpenVZ template metadata.

CentOS OpenVZ Container Operations

When the host node is booted up, the containers should be started as well.

These are the basic commends for operating OpenVZ containers:

Create or destroy a container

Here is script that you might find useful:

 

Install OpenVZ on CentOS

I. Install OpenVZ

Prepare filesystem

The OpenVZ contains will be stored in folder /vz. At the very list, create a separate partitioner that mounts onto /vz with ample disk space.

yum pre-setup

Download openvz.repo file and put it to your /etc/yum.repos.d/ repository. This can be achieved by the following commands, as root: