This guide describes how to upgrade from Virtuozzo 6 to Virtuozzo 7 in both local storage and Virtuozzo Storage scenarios. In brief, you can
-
upgrade current Virtuozzo 6 hosts by using temporary spare Virtuozzo 6 hosts or
-
migrate VMs and containers from current Virtuozzo 6 hosts to new Virtuozzo 7 hosts.
The exact steps to perform differ depending on scenario and are described further in the guide.
Note
|
Notes:
|
This chapter describes how to upgrade to Virtuozzo 7 if you have Virtuozzo 6 hosts with local storage. You can upgrade your current Virtuozzo 6 hosts by using spare hosts or migrate VMs and containers to new Virtuozzo 7 hosts. Apply either method to each host in your Virtuozzo 6 infrastructure.
To upgrade by using a spare Virtuozzo 6 host, do the following:
-
Update both the Virtuozzo 6 host to be upgraded and the spare host to the latest version. You can do this by running
yum update
on each host. -
Back up all VMs and containers on the Virtuozzo 6 host to be upgraded. You can do this with the
pbackup
tool as described in the Virtuozzo 6 User’s Guide. -
Temporarily migrate VMs and containers from the Virtuozzo 6 host to be upgraded to the spare Virtuozzo 6 host. You can do this with the
pmigrate
tool as described in the Virtuozzo 6 User’s Guide. -
Perform a fresh install of Virtuozzo 7 on the Virtuozzo 6 host to be upgraded. For instructions, see the Virtuozzo 7 Installation Guide.
-
Migrate VMs and containers back to the upgraded host from the spare host. For more details, see [_migrating_vms_and_containers_from_virtuozzo_6_to_virtuozzo_7].
-
If you store VM and container backups on a Virtuozzo 6 host, move them to a Virtuozzo 7 host as described in [_restoring_virtuozzo_6_backups_to_virtuozzo_7_hosts].
To upgrade by migrating to a new Virtuozzo 7 host, do the following:
-
Update the selected Virtuozzo 6 host (from which you will migrate VMs and containers) to the latest version. You can do this by running
yum update
. -
Back up all VMs and containers on the selected Virtuozzo 6 host. You can do this with the
pbackup
tool. -
Perform a fresh install of Virtuozzo 7 on a different (new) host. For instructions, see the Virtuozzo 7 Installation Guide.
-
Migrate VMs and containers to it from the selected Virtuozzo 6 host. For more details, see [_migrating_vms_and_containers_from_virtuozzo_6_to_virtuozzo_7].
-
If you store VM and container backups on a Virtuozzo 6 host, move them to a Virtuozzo 7 host as described in [_restoring_virtuozzo_6_backups_to_virtuozzo_7_hosts].
This chapter describes how to upgrade to Virtuozzo 7 if you have a Virtuozzo Storage cluster based on Virtuozzo 6. You can upgrade by either upgrade the current cluster to Virtuozzo 7 by using spare Virtuozzo 6 hosts or migrate VMs and containers to new a Virtuozzo 7 cluster.
-
Update all hosts in the cluster based on Virtuozzo 6 to the latest version. You can do this by running
yum update
on each host. -
Choose a host to upgrade in the cluster and migrate VMs and containers from it to other Virtuozzo 6 hosts in the cluster.
-
Remove chunk servers from the host:
-
Find out which chunk servers are stored on the host by running
pstorage -c <cluster_name> top
on any cluster host. -
Initiate removal of chunk servers from the host by running
pstorage -c <cluster_name> rm-cs --wait <CS_ID>
for each chunk server on the host.
-
-
Wait until the required chunk servers are removed and Virtuozzo Storage rebuilds. To monitor this process, run
pstorage -c <cluster_name> top
on any cluster host. The status of the chunk servers being removed will becomereleasing
and the number of replicas on them will start dwindling. When the number of replicas on a CS reaches zero, the CS will be removed both from the host and thepstorage top
output. Make sure that no chunk servers are left on the host to be upgraded. -
Perform a fresh install of Virtuozzo 7 on the host. During installation, choose to create a new Virtuozzo Storage cluster. For instructions, see the Virtuozzo 7 Installation Guide.
-
Choose another Virtuozzo 6 host in the old cluster and migrate VMs and containers from it to the new Virtuozzo Storage cluster based on Virtuozzo 7. For details, see [_migrating_vms_and_containers_from_virtuozzo_6_to_virtuozzo_7].
-
Perform a fresh install of Virtuozzo 7 on the second host. During installation, choose to join the new Virtuozzo Storage cluster based on Virtuozzo 7. For instructions, see the Virtuozzo 7 Installation Guide.
-
Repeat steps 7 and 8 for the remaining hosts in the old cluster until all Virtuozzo 6 hosts are upgraded to Virtuozzo 7.
-
If you store VM and container backups on a Virtuozzo 6 host, move them to a Virtuozzo 7 host as described in [_restoring_virtuozzo_6_backups_to_virtuozzo_7_hosts].
Note
|
Note: Virtuozzo Storage does not support mixed clusters of Virtuozzo 6 and 7 hosts. |
To upgrade by migrating VMs and containers from an old Virtuozzo Storage cluster based on Virtuozzo 6 to a new Virtuozzo Storage cluster based on Virtuozzo 7, do the following:
-
Update all hosts in the cluster based on Virtuozzo 6 to the latest version. You can do this by running
yum update
on each host. -
On a different set of hosts, create a new Virtuozzo Storage cluster based on Virtuozzo 7. For instructions, see the Virtuozzo 7 Installation Guide.
-
Migrate VMs and containers from the old cluster to the new cluster. For more details, see [_migrating_vms_and_containers_from_virtuozzo_6_to_virtuozzo_7].
-
If you store VM and container backups on a Virtuozzo 6 host, move them to a Virtuozzo 7 host as described in [_restoring_virtuozzo_6_backups_to_virtuozzo_7_hosts].
Virtuozzo 7 supports migration of older Virtuozzo 6 VMs and containers to the Virtuozzo 7 format. During migration, VMs and containers are converted for use with Virtuozzo 7. In particular, VM devices are replaced by those supported in Virtuozzo 7. For a list of VM hardware supported in Virtuozzo 7, see the Virtuozzo 7 User’s Guide.
To migrate a VM or container from Virtuozzo 6 to Virtuozzo 7, run the following command on the Virtuozzo 6 host.
# prlctl migrate <VM_or_CT_name> root@<VZ7_host_IP_address>
Migration from Virtuozzo 6 to Virtuozzo 7 implies VM and container downtime that depends on network bandwidth, virtual machine RAM size, and host load. To reduce downtime, it is recommended to at least perform migration when the host load is minimal.
Virtuozzo 7 supports restoring backups of Virtuozzo 6 VMs and containers to Virtuozzo 7 hosts. This section lists steps for possible scenarios. In each scenario, the commands are run on the Virtuozzo 7 host to which the backups will be restored.
To restore a specific backup stored on a Virtuozzo 6 host, do the following:
-
Find out the backup ID by listing backups stored on the Virtuozzo 6 host:
# prlctl backup-list root@<VZ6_host_IP_address>
-
Restore the backup:
# prlctl restore -t <backup_ID> root@<VZ6_host_IP_address>
To restore a backup of a Virtuozzo 6 VM or container migrated to a Virtuozzo 7 host, run
# prlctl restore <VM_or_CT_name> root@<VZ6_host_IP_address>
To copy a Virtuozzo 6 VM or container backup to a Virtuozzo 7 host and restore it there, do the following:
-
Find out the backup ID by listing backups stored on the Virtuozzo 6 host:
# prlctl backup-list root@<VZ6_host_IP_address>
-
Find out the default backup directory on the Virtuozzo 7 host:
prlsrvctl info | grep "Backup path"
-
Copy backup files to the default backup directory on the Virtuozzo 7 host. For example, if backups are stored in the default directory on a Virtuozzo 6 host, run:
# scp -r root@<VZ6_host_IP_address>:/var/parallels/backups/<backup_ID> \ /vz/vmprivate/backups/
Or, if you keep backups on network storage, attach said network storage to the default backup directory on the Virtuozzo 7 host. For example, if you store backups on an NFS share, mount this share to
/vz/vmprivate/backups/
. -
Restore the copied backup with either of the previously described methods.