Howto: Re-create/re-install a VPS

Posted by admin     Category: VPS Management

How to re-create/re-install a OpenVZ VPS?

1) Make a backup of the configuration file:

cp -p /etc/sysconfig/vz-scripts/VEID.conf  /etc/sysconfig/vz-scripts/VEID.conf_old

2) Stop the VPS:

vzctl stop VEID

3) Destroy/Terminate the VPS:

vzctl destroy VEID

4) Create the VPS using the OS templates stored under /vz/template/cache directory:

vzctl recreate VEID –ostemplate os-template-name

5) Copy the original configuration file back to have the original parameters:

cp -p /etc/sysconfig/vz-scripts/VEID.conf_old /etc/sysconfig/vz-scripts/VEID.conf

6) Start the VPS and reset the password

vzctl start VEID
vzctl set VEID –userpasswd root:password –save

Tags: , , , , ,

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image