1. You've provisioned a CentOS 7 x64 OpenVZ template, yet after doing so vzlist shows no IP and no Hostname and networking in the container does not function.
2. You've migrated a CentOS 7 x64 OpenVZ container from vz6 to vz7. After doing so there's no networking on the container -- it can't even ping localhost
Problem Resolution for Issue #1
If you run the OpenVZ host node, add the three following Networking lines to the container's conf file on the host node, then restart the container. If you do not operate the host node, please ask your datacentre to do this.
This will be located at /etc/vz/conf/$CTID.conf
If you run the OpenVZ host node, add the three following Networking lines to the container's conf file on the host node, then restart the container. If you do not operate the host node, please ask your datacentre to do this.
This will be located at /etc/vz/conf/$CTID.conf
IP_ADDRESS=""
HOSTNAME=""
NAMESERVER=""
Be sure to enter the actual IP and hostname of the server. The name server for OVH is 213.186.33.99.
Problem Resolution for Issue #2
If you run the OpenVZ host node, add the following Networking config to the container's conf file on the host node, then restart the container. If you do not operate the host node, please ask your datacentre to do this.
This will be located at /etc/vz/conf/$CTID.conf
NETFILTER="full"