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/ VMID
3. Transfer the file to the target server, for example:
scp -C /home/vzdump-VMID.tgz [email protected]:/home/
vzdump --restore /home/vzdump-VMID.tgz VMID
vzctl stop VMID
vzctl start VMID
/scripts/vm-migrate ID NEWNODEID
For example:
/scripts/vm-migrate 20 5
vzctl destroy VMID