How to auto-start a VPS on a host server/node reboot?

If a VPS doesn’t come online after the host server is rebooted, it is due to the “ONBOOT” parameter of the VPS is set to NO in the VPS configuration file. This parameter decides whether to start the VPS automatically if the host server is restarted.

If it's set to 'yes', the VPS will start automatically. 
If it's set to 'no', we will have to start the VPS manually.

To make the changes, edit the VPS configuration file

vi /etc/sysconfig/vz-scripts/VEID.conf

search for

ONBOOT="no"

and change to

ONBOOT="yes"

This change will auto-start the VPS next time the host node is rebooted.

This entry was posted on Sunday, July 4th, 2010 and is filed under VPS Management. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.