{"id":211,"date":"2009-10-13T14:03:00","date_gmt":"2009-10-13T18:03:00","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=211"},"modified":"2013-03-20T08:40:06","modified_gmt":"2013-03-20T12:40:06","slug":"howto-recreate-a-vps","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-recreate-a-vps","title":{"rendered":"Howto: Re-create\/re-install a VPS"},"content":{"rendered":"<p><span style=\"color: #000000;\"><strong>How to re-create\/re-install a OpenVZ VPS?<\/strong><\/span><\/p>\n<p><strong>1)<\/strong> Make a backup of the configuration file:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>cp -p \/etc\/sysconfig\/vz-scripts\/VEID.conf\u00a0 \/etc\/sysconfig\/vz-scripts\/VEID.conf_old<\/strong><\/span><\/p><\/blockquote>\n<p><strong>2)<\/strong> Stop the VPS:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vzctl stop VEID<\/strong><\/span><\/p><\/blockquote>\n<p><strong>3) <\/strong>Destroy\/Terminate the VPS:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vzctl destroy VEID<\/strong><\/span><\/p><\/blockquote>\n<p><strong>4)<\/strong> Create the VPS using the OS templates stored under \/vz\/template\/cache directory:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vzctl recreate VEID &#8211;ostemplate os-template-name<\/strong><\/span><\/p><\/blockquote>\n<p><strong>5) <\/strong>Copy the original configuration file back to have the original parameters:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>cp -p \/etc\/sysconfig\/vz-scripts\/VEID.conf_old \/etc\/sysconfig\/vz-scripts\/VEID.conf<\/strong><\/span><\/p><\/blockquote>\n<p><strong>6) <\/strong>Start the VPS and reset the password<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vzctl start VEID<br \/>\nvzctl set VEID &#8211;userpasswd root:password &#8211;save<\/strong><\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>How to re-create\/re-install a OpenVZ VPS?<br \/>\n1) Make a backup of the configuration file:<br \/>\ncp -p \/etc\/sysconfig\/vz-scripts\/VEID.conf\u00a0 \/etc\/sysconfig\/vz-scripts\/VEID.conf_old<br \/>\n2) Stop the VPS:<br \/>\nvzctl stop VEID<br \/>\n3) Destroy\/Terminate the VPS:<br \/>\nvzctl destroy VEID<br \/>\n4) Create the VPS using the OS templates stored under \/vz\/template\/cache directory:<br \/>\nvzctl recreate VEID &#8211;ostemplate os-template-name<br \/>\n5) Copy the original configuration file back to have the original parameters:<br \/>\ncp -p \/etc\/sysconfig\/vz-scripts\/VEID.conf_old \/etc\/sysconfig\/vz-scripts\/VEID.conf<br \/>\n6) Start the VPS and reset the password<br \/>\nvzctl start VEID<br \/>\nvzctl set VEID &#8211;userpasswd root:password &#8211;save<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[237,234,235,238,236,239],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/211"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":7,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/211\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}