Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install openssh-clients package:

    Code Block
    languagebash
    # yum install openssh-clients


  2. Download a script for installation of SSH keys:

    Code Block
    languagebash
    # wget http://files.soluslabs.com/solusvm/scripts/keyput.sh
    # chmod a+x keyput.sh


  3. Install SSH keys on the target server:

    Code Block
    languagebash
    # ./keyput.sh destination_node_ip destination_node_sshport


  4. Find VMID of the container for migration:

    Code Block
    languagebash
    # vzctl list 


  5. Migrate the container:

    Code Block
    languagebash
    # vzmigrate -v --ssh="-p destination_sshnode_port" destination_node_ip VMID


  6. Update Master node database with the new location of VPS

    Code Block
    languagebash
    # /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:

    Code Block
    languagebash
    # /scripts/vm-migrate 20 5