📚 Legacy Documentation
Notice: This is the legacy documentation. For the latest features and updates, refer to our current SolusVM documentation.
Using vzdump utility
The following should be done to migrate OpenVZ 6 container between OpenVZ 6 nodes using vzdump:
1. Connect to the source server over SSH.
2. Create an archive of the container:
vzdump --compress --dumpdir /home/ VMIDVMID of VPS can be found in SolusVM > Virtual Servers.
3. Transfer the file to the target server, for example:
scp -C /home/vzdump-VMID.tgz root@targetserverip:/home/4. Restore the archive:
vzdump --restore /home/vzdump-VMID.tgz VMID5. Stop VPS on the source server:
vzctl stop VMIDand start it on the target server to verify that the container is operational:
vzctl start VMID6. Connect to Master node over SSH. 7. Update Master node database with the new location of VPS
/scripts/vm-migrate ID NEWNODEIDwhere 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.
For example:
/scripts/vm-migrate 20 58. After the migrated container was tested - remove VPS on the source server:
vzctl destroy VMID