Chat with us, powered by LiveChat
Start of VPS failed

Start of VPS failed

VPS starting with the following error :
————————-
Failed to start Virtual Private Server ‘102’. Error invoking vzctl utility:
Starting VPS …
VPS is mounted
fork() failed, errno 12
Start of VPS failed
VPS is unmounted
————————-
If VE is experiencing this error and you are unable to start the VPS at all. Initially the numproc QoS is having problems and after which we did a soft reboot on the VPS which end up with the above error.

Related Solution :

Try stoping/umounting the VPS and then starting in verbose mode, you will get more info about the problem, almost surely it will be a problem with some disk quota:
————————-
vzctl stop 102
vzctl umount 102
vzctl –verbose start 102
————————-

Now suppose, you are getting the following error when going into the verbose mode:
————————-
[[email protected] nsphang]# /usr/sbin/vzctl –verbose start 102
Starting VPS …
Running command: /usr/sbin/vzquota show 102
Running command: /usr/sbin/vzquota on 102 -p /vz/private/102 -r 0 -s 1 -u 976128930 -b 2147483747 -B 2147483747 -i 2147483647 -I 2147483647 -e 0 -n 0
Mounting root: /vz/template:/vz/private/102 /vz/root/102
VPS is mounted
Running command: /etc/sysconfig/vz-scripts/vz-start
fork() failed, errno 12
Start of VPS failed
Running command: /usr/sbin/vzquota setlimit 102 -u 976128930 -b 2147483747 -B 2147483747 -i 2147483647 -I 2147483647 -e 0 -n 0
Running command: /usr/sbin/vzquota stat 102 -f
Running command: /usr/sbin/vzquota off 102
VPS is unmounted
————————-

Cause

What OS template are you using? and Virtuozzo version? It’s very important..

It seems that it’s a problem with some process creation, perhaps you have reached the maximun number of process inside the VPS and it fails on startup, see QoS alerts for more info. So you can do 2 things to reduce process creation during boot:

1) Try to increase number of allowed process: “vzctl set 120 –save –numproc 500”.

2) Reduce to the minimun the start scrips deleting or renaming symlinks, for example to disable Apache:
————————-
vzctl stop 102
cd /vz/private/120/root/etc/rc3.d/
ls -1 | grep ^S
mv S85httpd K85httpd
————————-

Latest posts by Gulam (see all)

Sharing

Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.