6. Restoring Virtuozzo 6 Backups to Virtuozzo Hybrid Server 7

Virtuozzo Hybrid Server 7 supports restoring backups of Virtuozzo 6 VMs and containers to Virtuozzo Hybrid Server 7.

The following rules and considerations apply:

  • Restore commands are run on the destination server (to which the backups will be restored).

  • Only stopped virtual machines and containers can be restored from backup.

  • Windows VMs without installed Virtuozzo guest tools cannot be restored from Virtuozzo 6 backups (or backed up to Virtuozzo Hybrid Server 7).

  • Backups of virtual machines and containers with guests unsupported in Virtuozzo Hybrid Server 7 may not be restored correctly.

  • VZFS-based containers must be converted to ploop format and backed up again before they can be restored to Virtuozzo Hybrid Server 7.

  • The recommended and highest-supported destination hardware node version for restoring backups created on Virtuozzo 6 is Virtuozzo Hybrid Server 7.5 Update 4.

To restore a specific backup of a Virtuozzo 6 VM or container stored on remote Virtuozzo Hybrid Server, do the following:

  1. Find out the backup ID by listing backups stored on the remote server:

    # prlctl backup-list -s root@<backup_server>
    
  2. Specify the found backup ID in the restore command:

    # prlctl restore -t <backup_ID> -s root@<backup_server>
    

To restore a remotely stored backup of a Virtuozzo 6 VM or container after said VM or container has been migrated to Virtuozzo Hybrid Server 7, run

# prlctl restore <VM_or_CT_name_or_UUID> -s root@<backup_server>

To copy a Virtuozzo 6 VM or container backup to Virtuozzo Hybrid Server 7 and restore it there, do the following:

  1. Find out the backup ID by listing backups stored on the Virtuozzo Hybrid Server:

    # prlctl backup-list root@<backup_server>
    
  2. Find out the default backup directory on Virtuozzo Hybrid Server 7:

    prlsrvctl info | grep "Backup path"
    
  3. Copy backup files to the default backup directory on Virtuozzo Hybrid Server 7. For example, if backups are stored in the default directory on a Virtuozzo 6 server, run:

    # scp -r root@<VZ6_server>:/var/parallels/backups/<VM_UUID> \
    /vz/vmprivate/backups/
    

    Or, if you keep backups on network storage, attach said network storage to the default backup directory on Virtuozzo Hybrid Server 7. For example, if you store backups on an NFS share, mount this share to /vz/vmprivate/backups/.

  4. Restore the copied backup:

    # prlctl restore -t <backup_ID>