Templates are groups of primary copies of virtual machines, ready for instantiating. Replicating vApp templates to a site allows the tenants there to deploy consistently configured sets of virtual machines across multiple VMware Cloud Director instances.
A vApp template represents a collection of always powered off or suspended virtual machine images loaded with an operating system, configured applications, networks, and data.
VMware Cloud Director Availability 4.7 or later, when deployed in both the source and in the destination sites allows selecting Copy security tags in a vApp template protection. For information about the tags, see Tags in the NSX documentation and View the Security Tags in Your Organization in the VMware Cloud Director Tenant Portal in the VMware Cloud Director documentation.
If the Custom SLA settings toggle is not activated in the policy, then the vApp template protection fails at creation with the following error message: Replication with custom SLA settings can not be configured because it violates policy 'Policy-name' configured at site 'Site-name'.
vApp Templates Replications
- Click Incoming Replications.
- Alternatively, click Outgoing Replications.
Then, on the Direction Replications page, for the vApp templates replications click the Templates tab.
Create a New vApp Templates Migration
- Click the New Migration button.
- Alternatively, click .
- On the Catalogs page, configure the source migration settings then click Next.
- Select a source catalog.
The table shows only catalogs owned by the selected Source organization from the drop-down menu.
The tenants also see shared catalogs between organizations. To show a shared catalog, the providers must select the source organization sharing it.
Catalogs that are subscribed to other catalogs are excluded from the available destination catalogs only for tenants. For providers, they still appear, but attempting a migrate later shows an error.
- Select one or more source vApp templates for migrating.
- Select a source catalog.
- On the Destination VDC and Storage policy page, configure the destination settings then click Next.
- Select a virtual data center from the destination site as a replication target.
- Select the new destination storage policy for placing the recovered virtual machines.
If the destination catalog has differing storage policies assigned, the selected storage policy only applies to the replica files and might differ from the storage policy of the migration catalog. Similar to vApp or virtual machine migrations, template migrations allow changing the storage policy before the recovery.
The resulting vApp template matches the datastore catalog.
- On the Settings page, configure the migration settings then click Next.
- Optionally, to compress the replication traffic, leave the toggle active. The traffic compression lowers the network requirements at the expense of higher CPU consumption for the Replicator Appliance instances.
- Optionally, delay the synchronization start and set the time for the first synchronization of the templates migration.
Note: By not scheduling the time for the initial synchronization, it must be performed later either manually or during Migrate.
- On the Ready to complete page, verify the selected migration settings then click Finish.
Create a New vApp Templates Protection
- Click the New Protection button.
- Alternatively, click .
- On the Catalogs page, configure the source protection settings then click Next.
- Select a source catalog.
The table shows only catalogs owned by the selected Source organization from the drop-down menu.
The tenants also see shared catalogs between organizations. To show a shared catalog, the providers must select the source organization sharing it.
Catalogs that are subscribed to other catalogs are excluded from the available destination catalogs only for tenants. For providers, they still appear, but attempting a migrate later shows an error.
- Select one or more source vApp templates for protecting.
- Select a source catalog.
- On the Destination VDC and Storage policy page, configure the destination settings then click Next.
- Select a virtual data center from the destination site as a replication target.
- Select the new destination storage policy for placing the recovered virtual machines.
If the destination catalog has differing storage policies assigned, the selected storage policy only applies to the replica files and might differ from the storage policy of the protection catalog. Similar to vApp or virtual machine protections, template protections allow changing the storage policy before the recovery.
The resulting vApp template matches the datastore catalog.
- On the Settings page, configure the protection settings then click Next.
- Optionally, leave the Track source for changes checkbox activated to track any changes in the source template, then start a new protection for the new version of the template. The protection for the old version automatically stops.
- Optionally, leave the delay and set a time interval for the ongoing automatic synchronization of the templates protection.
Note: The synchronization could take longer than the configured time window and might finish after the interval is over.
- Optionally, to copy the security tags from the source virtual machine then during recovery apply them to the destination virtual machine, select the Copy security tags check box.
Note:
Copy security tags selected:
This option is only applied for future automatically created template replications.Copy security tags deselected:
When performing a manual migrate later, in the wizard if you select to copy tags, this would not change the settings for automatic template protections as selected here.
- Configure the Destination template:
- Leave Create a new copy of the destination template and keep the old versions selected to always replicate to new destination template copies when new source template versions are detected.
- Select Replace destination template to keep replicating in one and the same destination template and replace it when new source template versions are detected.
Note: To activate the automatic migrate, first manually perform a migrate. After its initial synchronization, when in the source VMware Cloud Director you select Overwrite catalog item for the already protected template, VMware Cloud Director shortly deletes it from its catalog and re-creates it as a new template with a new ID and the same name. Then VMware Cloud Director Availability creates a new template protection, synchronizes it and deletes the old one. This either happens within 5 minutes of the change when no time interval is configured for the synchronization, or with configured time interval - only within it VMware Cloud Director Availability picks the latest source template changes. - Optionally, to compress the replication traffic, leave the toggle active. The traffic compression lowers the network requirements at the expense of higher CPU consumption for the Replicator Appliance instances.
Note:
- If the organization has no SLA profiles assigned, the Compress replication traffic toggle shows on the Settings page and you can configure it either now when creating the protection, or later by clicking .
- If the organization has one or more SLA profiles assigned, the Compress replication traffic toggle does not show on the Settings page. Later, you can still configure it by clicking .
- On the Ready to complete page, verify the selected protection settings then click Finish.
Note:
- With no SLA profiles assigned to the organization, Compress replication traffic shows the value that you configured on the Settings page.
- With a single SLA profile assigned to the organization, Compress replication traffic shows the value according to the already assigned SLA profile.
- With multiple SLA profiles assigned to the organization, Compress replication traffic shows the value according to the first SLA profile, counted in alphabetic order.
Templates Replication and Recovery Settings
- Edit Replication Settings window configure the available replication settings depending on both the type of the selected replications and whether already migrated, then click Apply.
Table 1. Edit Replication Settings Protection Migration Track source for changes - by leaving this checkbox active tracks any changes in the source template, and starts a new protection for the new version of the template. Then the protection for the old version automatically stops. Not available for migrations. Set a time interval that is convenient for the automatic synchronization. Note: The synchronization can take longer than the configured time window and can finish after the interval is over.Automatic migrate behaviour - Security tags - optionally, to copy the security tags from the source virtual machine then during recovery apply them to the destination virtual machine, select the Copy security tags check box.
Note:
- Changing this option affects the automatic migrate behavior for future automatically created replications.
- Changing this option for already migrated protections, affects the next automatic protection.
- Destination template
- Select Replace destination template to keep replicating in one and the same destination template and replace it when new source template versions are detected.
- Leave Create a new copy of the destination template and keep the old versions selected to always replicate to new destination template copies when new source template versions are detected.
Note: To activate the automatic migrate, first manually perform a migrate. After its initial synchronization, when in the source VMware Cloud Director you select Overwrite catalog item for the already protected template, VMware Cloud Director shortly deletes it from its catalog and re-creates it as a new template with a new ID and the same name. Then VMware Cloud Director Availability creates a new template protection, synchronizes it and deletes the old one. This either happens within 5 minutes of the change when no time interval is configured for the synchronization, or with configured time interval - only within it VMware Cloud Director Availability picks the latest source template changes.Compress replication traffic - The traffic compression lowers the network requirements at the expense of higher CPU consumption for the Replicator Appliance instances. Note: After performing migrate, for both protections and migrations the compression can no longer be modified.
and in the - Security tags - optionally, to copy the security tags from the source virtual machine then during recovery apply them to the destination virtual machine, select the Copy security tags check box.
- Recovery settings window click Networks and for the vApps and virtual machines configure the source vApp template networks connectivity with the target networks after migrate, then click Apply.
Note: After performing migrate, for both protections and migrations the network settings can no longer be modified.
then in the
- Change Replication Owner window, choose a new owner organization, then click Apply:
- System organization
- Tenant organization
and in the - Edit storage policy window, select the new storage policy placement, then click Apply. in the
Migrate vApp Templates
- Click Migrate.
- Alternatively, click .
The Migrate vApp Templates wizard opens.
- On the Destination Catalog page, select a destination catalog owned by the destination organization.
- On the Settings page, choose the destination template settings.
- Under Network Settings, select:
- Apply preconfigured network settings on migrate keeps the source vApp networks with their connectivity.
- Connect all VMs to network, then select the destination-network.
- Optionally, under Security tags, to copy the security tags from the source virtual machine then during recovery apply them to the destination virtual machine, select the Copy security tags check box.
Note: This setting affects only the currently migrated replication and does not affect the automatic behavior.
- Under Network Settings, select:
- On the Ready to Complete page, verify the selected migration settings and click Finish.
In the destination site, during the migration process, VMware Cloud Director Availability creates a temporary vApp that is an instantiated source template. After completing the migration, VMware Cloud Director Availability captures this temporary vApp in a template in the destination catalog. After a successful capture, it deletes the temporary vApp, leaving only the template. There is a point in time during the template migration when VMware Cloud Director contains both the temporary vApp and the vApp template and vSphere shows both the virtual machines and their temp copies.
Synchronize the vApp Templates Replications
- Sync. The disks of the virtual machines are locked and the source template is not usable until the synchronization operation completes. performs an offline synchronization after clicking
- Pause. pauses the selected replications and does not send data to the destination site after clicking
- Resume. resumes the selected paused replications and starts sending data again at the configured time after clicking
- Cannot use the source virtual machines included in the template.
- Cannot instantiate the source template.