You may receive an 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. The init file resides under /sbin i.e. check
ls -la /vz/private/VEID/sbin/init
of a VPS. 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/
OR
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/VEID/sbin/
Once done, you will be able to start your VPS.
vzctl start VEID
Comments are closed.