Migrating OpenVZ Nodes

From VcPanel Enterprise : VPS Control Panel

Jump to: navigation, search


Important:If you are not familiar with tech and you need some help for migrating you nodes to vcPanel please contact our support. We will do it for you. But if you are ok with the migration, please proceed the steps below,


vcPanel EP have a new feature. You can migrate any of your openvz nodes to vcPanel from any other control panel. You may only need to reboot your containers one time. Please follow the procedures given below for migrating nodes to vcpanel

  • Setup External node for vcPanel
  • Migrate from vcPanel admin panel

Setup External node for vcPanel

You may need to configure your external node for vcPanel. Please read the Node Installation Documents from here. http://wiki.vcpanel.net/Install_Nodes . This doesn't brake your containers. After finishing the node configuration. You are ready to start the migration.

Migrate from vcPanel admin panel

Login to your node using ssh and do the following command.

# vzlist -a

It will show an output like as follows,

$vzlist -a
     CTID      NPROC STATUS  IP_ADDR         HOSTNAME                        
      100         62 running 10.0.0.10     vps1.vcpanel.net             
      101         59 running 10.0.0.11     vps2.vcpanel.net         
      102         46 running 10.0.0.12     vps3.vcpanel.net  
$hostname
node11.vcpanel.net
$

Now login to vcPanel admin panel vcPanel : VPS Control Panel >> Node Management >> Migrate Node >> Migrate openvz ode And add the above containers one by one. Please note you must use the same HOSTNAME for the containers.( eg : vps1.vcpanel.net ) . You can also chose the same main IP shown above too ( eg: 10.0.0.10 ). Add all containers one by one. During this procedure vcPanel add all required data to the database.

change CTID of containers

Now the last procedure is to change the CTID. Login to vcPanel admin panel vcPanel : VPS Control Panel >> Container >> List and search for the Host Node ( in the above example hostnode name is node11.vcpanel.net).

Now you will get all containers hosted on this new node, We need to pick the CTID from this list (second column ) . Let us say for the container vps1.vcpanel.net the new CTID is 1500 . So we need to change it in node too. SSH to node and stop the vps

# vzctl stop 100

Now change the CTID 100 to 1500 as follows,

# mv /vz/private/100 /vz/private/1500
# mv /etc/vz/conf/100.conf /etc/vz/conf/1500.conf

Now start the container

# vzctl start 1500

Now stop the container

# vzctl stop 1500

Now assign the remaining IPS from the vcPanel admin panel vcPanel : VPS Control Panel >> Container >> Add/Remove IP >> Add/Remove IP (Openvz)

Now start the container from vcPanel admin panel vcPanel : VPS Control Panel >> Container >> Start VPS >> Start Openvz VPS

Personal tools
End user manual
Modules