{"id":600,"date":"2012-05-01T15:31:09","date_gmt":"2012-05-01T08:31:09","guid":{"rendered":"http:\/\/whplus.com\/blog\/?p=600"},"modified":"2012-05-01T15:31:09","modified_gmt":"2012-05-01T08:31:09","slug":"how-to-manually-migrate-a-vz-container","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2012\/05\/01\/how-to-manually-migrate-a-vz-container.html","title":{"rendered":"How to Manually Migrate a VZ Container"},"content":{"rendered":"<p>Have a tricky VPS that vzmigrate just can\u2019t move? Luckily, Virtuozzo (and OpenVZ for that matter) are pretty simple in terms of how the containers are set up. You\u2019re mainly dealing with two locations that data for the container is stored:<\/p>\n<blockquote><p>\/vz\/private\/$VEID<br \/>\n\/etc\/vz\/conf\/$VEID.conf<\/p><\/blockquote>\n<p>To manually move a container to another node, all you need to do is copy those folders:<\/p>\n<blockquote><p>rsync -av \/vz\/private\/$VEID $newserver:\/vz\/private<br \/>\nrsync -av \/etc\/vz\/conf\/$VEID $newserver:\/etc\/vz\/conf<\/p><\/blockquote>\n<p>Then on the server server, just start it right up. You do need to have the container\u2019s OS template installed on the new node, as referenced in the container\u2019s config file.<br \/>\nThis same process also applies to cloning a VPS, which is particularly useful on an OpenVZ server where the vzmlocal command isn\u2019t available. All you have to do is use similar commands to rsync the container\u2019s private folder to a new VEID:<\/p>\n<blockquote><p>rsync -av \/vz\/private\/$VEID \/vz\/private\/$NEWVEID<br \/>\nrsync -av \/etc\/vz\/conf\/$VEID \/etc\/vz\/conf\/$NEWVEID<\/p><\/blockquote>\n<p>Then just change the hostname and ip variables in the new container\u2019s config file.<\/p>\n<p>surce: http:\/\/www.thevirtuozzoadmin.com\/how-to-manually-migrate-a-vz-container\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have a tricky VPS that vzmigrate just can\u2019t move? Luckily, Virtuozzo (and OpenVZ for that matter) are pretty simple in terms of how the containers are set up. You\u2019re mainly dealing with two locations that data for the container is stored: \/vz\/private\/$VEID \/etc\/vz\/conf\/$VEID.conf To manually move a container to another node, all you need to\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2012\/05\/01\/how-to-manually-migrate-a-vz-container.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":1,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}