Install Cozy on OpenVZ

We assume that you have already installed OpenVZ utilities.


Download

# Download the OpenVz template (~ 340MB)
wget https://files.cozycloud.cc/openvz/openvz-cozycloud-latest.tar.gz

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 10.0.0.10  --save
vzctl start ctid

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

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