New template network/ssh down

We just made aware that the new LXC plan template and some new openvz plans, the network/sshd may fail to start after reboot/stop/start vps, we see it happening only on Centos templates and some debian on new openvz plans.


NOTE:
1. This seems to happen only on OpenVZ template(s) that's used on LXC/new openvz plans, like Cenots 6/7 or debian. All other LXC templates are now made for LXC so should not be this issue.
2. And if you're on LXC with Centos, make sure to also fix allocate pty issue.


So if you notice your IP not ping, and you have not made any changes, first thing to do is to start network by following these steps:

1. Login to our web panel and click NoVNC Console

2. login as root and type

service network restart (for centos) or
/etc/init.d/networking restart (for debian) or
ifdown venet0:0 && ifup venet0:0 or ifdown eth0 && ifup eth0 (for ubuntu)

If you made some changes, we also notice that the firewall/iptables can cause it.

If you cannot ssh, try to restart ssh service via command:

service sshd restart (for centos)
/etc/init.d/ssh restart or service ssh restart (for debian/ubuntu)

NOTE: On Fedora, SSH Server is not installed yet so you need to install it first via command below (need 128MB ram or more) yum install openssh-server

HINT: To make it restart network/sshd automatically after each reboot, try modify /etc/rc.d/rc.local file on Centos and add these lines below to the file service network restart service sshd restart

IMPORTANT: If you're seeing IP conflict issue on your centos templates, to fix it, ou need to disable arping on the network start, below is info for centos 6, other centos version maybe different

"service network restart" calls the script "/etc/sysconfig/network-scripts/ifup-eth". In the script, around line 254, you will see it use the command "arping -c 2 -w 3 -D -I ". As a workaround, you can comment out the line, "arping -c 2 -w 3 -D -I " AND all 3 lines below it. With these 4 lines commented, "service network restart" will work.

[root@CTXXX ~]# service network restart
Restarting network (via systemctl): [ OK ]

Ha estat útil la resposta?

 Imprimeix aquest Article

Llegir també

How to install from ISO (New KVM)

This is only for our New KVM based VPS, there are 2 different New KVM plans, click here for KVM...

How to access Web Panel or VNC Console from Client Area (New KVM/OpenV/LXC)

NOTE: - If problems, use other web browser or try Private Window on your browser. - If you get...

How to order Addons (extra rams/space/bandwidth)

1. Please login and go to to our client area products page2. Click "Active" button on the product...

How setup OpenVPN on OpenVZ with Centos 6 64-bit template

This is only for New OpenVZ with Centos-6-OpenVPN-64-bit template. You can reinstall to this...

My Ubuntu template cannot SSH as root

If you have Ubuntu on your OpenVZ/LXC plans and you cannot login as root via SSH, it is because...