Page tree
Skip to end of metadata
Go to start of metadata

The following should be performed to migrate a container from OpenVZ 6 to OpenVZ 7 node:

  1. Connect to the source server over SSH.
  2. Find VMID of the required container:

    # vzlist -a
  3. Create a pair of SSH RSA keys:

    # ssh-keygen -t rsa
  4. Install the RSA key on the target server (execute the command below on the source):

     # ssh-copy-id root@target_ip
  5. Download a migration script ovztransfer.sh and make it executable:

    The script ovztransfer.sh is open-source and was developed by OpenVZ community. More information can be found in the official OpenVZ 7 documentation.

    wget https://docs.solusvm.com/download/attachments/27427278/ovztransfer.sh
    chmod +x ./ovztransfer.sh
  6. Start the migration:

    # ./ovztransfer.sh target_ip VMID
  7. Connect to Master node over SSH.
  8. Update Master node database with the new location of VPS

    # /scripts/vm-migrate ID NEWNODEID

    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.
    For example:

    # /scripts/vm-migrate 20 5

More information about migration from OpenVZ 6 to OpenVZ 7 can be found in the official Virtuozzo 7 documentation.


  • No labels