From OpenVZ 7 to OpenVZ 7 node¶
The following should be performed to migrate a container from one OpenVZ 7 node to another:
Important note
A direct SSH connection on port 22 must be allowed between the source and destination servers.
-
Connect to the source slave node over SSH.
-
Find VMID of the required container:
# vzlist -a
- Execute the following command to migrate VPS:
# prlctl migrate VMID root:[email protected]_IP
- Update Master node database with the new location of VPS
where ID - ID of the migrated VPS, can be seen in column ID in SolusVM > Virtual Servers; NEWNODEID - ID of the target node, can be seen in SolusVM > Nodes.
# /scripts/vm-migrate ID NEWNODEID
For example:# /scripts/vm-migrate 20 5
For additional information refer to the official Virtuozzo 7 documentation.