Unable to start init, probably incorrect template in Virtuozzo beheben
Aus Wiki Thomas-Krenn.AG
Dieser Artikel beschreibt wie Sie das Startproblem "Unable to start init, probably incorrect template" eines Virtuozzo Gastsystems beheben können.
Inhaltsverzeichnis |
Problem
Ein Gastsystem lässt sich nicht mehr starten. In /var/log/messages steht folgender Fehler:
Aug 6 07:42:43 hostserver-1 kernel: VPS: 113: started Aug 6 07:42:51 hostserver-1 kernel: VPS: 113: stopped Aug 6 07:42:52 hostserver-1 vz: Starting VE ... VE is mounted Setting devperms 20002 dev 0x7f00 Adding IP address(es): 192.0.2.11 192.0.2.12 192.0.2.13 Hostname for VE set: ve113.example.com File resolv.conf was modified ERROR: Unable to start init, probably incorrect template VE start failed VE is unmounted VE start failed failed
mögliche Ursache
Im Gastsystem fehlt die Datei /sbin/init:
[root@hostserver-1 ~]# ls -l /vz/private/113/root/sbin/ | grep -i init [root@hostserver-1 ~]# ls -l /vz/private/113/root/bin/ | grep -i init [root@hostserver-1 ~]#
Sie wurde z.B. versehentlich irrtümlich gelöscht. Da die Datei fehlt, kann der Init-Prozess nicht gestartet werden und Virtuozzo melden den oben angeführten Fehler.
Lösung
Zumeist sind noch andere Gastsysteme mit der gleichen Distribution in der gleichen Version vorhanden. Kopieren Sie von einem solchen System die init Datei in das fehlerhafte Gastsystem:
[root@hostserver-1 ~]# cat /vz/private/113/root/etc/debian_version
4.0
[root@hostserver-1 ~]# cat /vz/private/104/root/etc/debian_version
4.0
[root@hostserver-1 ~]# cp -a /vz/private/104/root/sbin/telinit /vz/private/113/root/sbin/telinit
[root@hostserver-1 ~]# vzctl start 113
Starting VE ...
VE is mounted
Setting devperms 20002 dev 0x7f00
Adding IP address(es): 192.0.2.11 192.0.2.12 192.0.2.13
Hostname for VE set: ve113.example.com
File resolv.conf was modified
VE start in progress...
[root@hostserver-1 ~]# vzlist -a
VEID NPROC STATUS IP_ADDR HOSTNAME
1 52 running 192.0.2.2 localhost
104 60 running 192.0.2.10 ve104.example.com
113 5 running 192.0.2.11 ve113.example.com
[root@hostserver-1 ~]#