Install Cozy on OpenVZ

We assume that you have already installed OpenVZ utilities.


# Download the OpenVz template (~ 340MB)

Mount and start the container

vzrestore openvz-cozycloud-latest.tar.gz ctid
vzctl start ctid

There are no password. You need to do a vzctl enter ctid to put one. Or put your SSH key.

NB: Replace ctid with an available ctid (101, 102, etc.)

With a configured network

You will probably need to give access to your container from outside your host. Here is a way to do it:

# Mount your new container, give it an IP address and start it:
vzrestore openvz-cozycloud-latest.tar.gz ctid
vzctl set ctid --ipadd  --save
vzctl start ctid

# Setup a reverse proxy that routes your 8888 port to
# (Use Nginx for instance).
# ...
# Then authorize the routing:
/sbin/iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8888 -j DNAT --to

Of course you can replace 8888 by the port you want.