If you are getting the error “Unable to start init, probably incorrect template” while starting a VPS. The “incorrect template” problem occurs when the “init” on the VPS goes missing.
Init file should be there in /sbin
You can check it using
ls -la /vz/private/VID/sbin/init
If the file is missing or the file size is zero, your VPS won’t start. In order to resolve problem, you can either copy the ‘init’ from a different VPS using the same OS template i.e
cp /vz/root/VEID1/sbin/init /vz/private/VEID/sbin/
you can untar the OS template located under /vz/template/cache/ directory and copy the ‘init’ file there i.e.
tar -zxf /vz/template/cache/os_template.tar.gz
cp /vz/template/cache/sbin/init /vz/private/VID/sbin/
Then you can start your vps
Init file should be there in /sbin
You can check it using
ls -la /vz/private/VID/sbin/init
If the file is missing or the file size is zero, your VPS won’t start. In order to resolve problem, you can either copy the ‘init’ from a different VPS using the same OS template i.e
cp /vz/root/VEID1/sbin/init /vz/private/VEID/sbin/
you can untar the OS template located under /vz/template/cache/ directory and copy the ‘init’ file there i.e.
tar -zxf /vz/template/cache/os_template.tar.gz
cp /vz/template/cache/sbin/init /vz/private/VID/sbin/
Then you can start your vps
vzctl start VID