XenServer hosts store metadata about VMs and associated resources such as storage and networking. This metadata forms a complete view of all VMs available across the pool. You can backup this database to recover from physical hardware failure and other disaster scenarios.
The legacy backup and restore capability in Citrix Hypervisor 8.2 Cumulative Update 1 contains a potential vulnerability. For more information, see XenServer and Citrix Hypervisor Security Update for CVE-2024-31143 and CVE-2024-31144. A replacement solution is provided for Citrix Hypervisor 8.2 Cumulative Update 1 in hotfix XS82ECU1066. If you previously created backups with the legacy version of this capability, ensure that you review this article to understand the differences between the two and the steps needed to restore from a legacy backup with the new capability.
The VM metadata backup and restore capability in xsconsole was not initially present in XenServer 8. We delivered this replacement solution to XenServer 8 in an update.
This article refers to XenServer throughout, but these instructions apply to both Citrix Hypervisor 8.2 Cumulative Update 1 and to XenServer 8.
The VM metadata backup and restore capability is available from xsconsole. To access xsconsole:
xsconsole
.Alternatively, if you accessing the XenServer host locally, you can press Alt + F1
to access the first virtual console screen.
In xsconsole, use the up and down arrows to select Backup, Restore, and Update. Press Enter.
Note: This feature is also accessible through the following command-line tools: xe-backup-metadata and xe-restore-metadata. You can run these tools with the -h flag for more information. This article only describes using xsconsole.
This action creates a virtual disk containing the backed up VM metadata on the SR that you choose:
The back up takes a short time and shows a message when it is complete to indicate success or failure.
On the SR that you chose in the Storage tab, you can see the Pool Metadata Backup virtual disk. This disk is usually about 500 MiB.
Subsequent backups are added to this same Pool Metadata Backup virtual disk. The most recent 25 backups are kept in this virtual disk. The size of the virtual disk does not exceed 500 MiB. If doing a backup will cause this limit to be exceeded, the backup fails
You can schedule the VM metadata backup to occur daily, weekly, or monthly:
The scheduled backups are created on the pool's default SR.
You can restore the VM metadata from the Pool Metadata Backup virtual disk. We only support restoring a backup created by the same or earlier version of the backup capability. For example, you can use XenServer 8 to restore a backup made by Citrix Hypervisor 8.2 Cumulative Update 1, but not the other way around.
Note: This section describes how to restore a backup created with the new version of this capability. If you created a backup with the legacy version of the tool, restoring from this backup is slightly different. Refer to Restore VM metadata from a legacy backup.
You can also choose to do a dry run of the restore operation. This enables you to check whether there are any problems with the restore before committing to it.
The restore action can take a few minutes. When the operation is complete, xsconsole reports success or failure.
If you created a backup before applying hotfix XS82ECU1066 to your Citrix Hypervisor 8.2 hosts and want to restore from that legacy backup, you can restore this backup with either Citrix Hypervisor 8.2 or XenServer 8.
To restore from a legacy backup, complete the following steps:
You can also choose to do a dry run of the restore operation. This enables you to check whether there are any problems with the restore before committing to it.
The restore action can take a few minutes. When the operation is complete, xsconsole reports success or failure.
Note: If your SR contains a backup created with the newer version of this capability, you cannot restore through xsconsole from a legacy backup on the same SR. If you want to take this action, contact Technical Support for advice.