The storage policy drives the encryption for virtual machines. Enable the encryption in the storage policy then assign it to the virtual machine configuration files and its disks. The replication follows the encryption status. First encrypt the virtual machines before adding them in the replication.
Important: Cannot replicate a vApp containing both encrypted and non-encrypted virtual machines.
If the replicated virtual machine changes from encrypted to unencrypted, reestablish the replication by stopping it then starting it.
Prerequisites
- Prerequisites for the versions in the source and in the destination sites:
-
- For vSphere DR and migration, use vCenter Server 7.0 U2 or later and VMware Cloud Director Availability 4.5 or later in both the source and the destination site.
- Alternatively, for cloud sites backed by VMware Cloud Director, use vCenter Server 6.7 U3 or later, any supported version of VMware Cloud Director Availability, and VMware Cloud Director 10.1 or later.
- Prerequisites for the ESXi hosts in both the source and in the destination sites:
-
Install the HBR agent VIB in all the
ESXi hosts. To download the HBR agent VIB file directly from the appliance:
- Depending on the appliance type and deployment, from the following URL on the appliance download the:
- https://vCenter_Replication_Management_Appliance_Address:8043/hbr-agent.vib file.
- https://Replicator_Appliance_Address/hbr-agent.vib file.
- Alternatively, from the appliance filesystem, download the /opt/vmware/hbr/vib/vmware-hbr-agent-build_number.i386.vib file.
For more information about VIBs and how to install them, see VIBs, Image Profiles, and Software Depots in the VMware ESXi Upgrade Guide.
- Depending on the appliance type and deployment, from the following URL on the appliance download the:
- Prerequisites for the vCenter Server instances in both the source and in the destination sites:
-
- Configure a key provider in vSphere. For more information, see Virtual Machine Encryption in the vSphere Security Guide:
- For vSphere 7.0 and later, configure a VMware vSphere® Native Key Provider™ which does not require an external key server. For more information, see Configuring and Managing vSphere Native Key Provider in the vSphere Security Guide.
- Alternatively, for vSphere 6.x or 7.x and cloud sites backed by VMware Cloud Director, configure an external key server, previously known as Key Management Server cluster and ensure that the cluster names match. For information about configuring a standard key provider, see Set up the Key Management Server Cluster in the vSphere Security Guide.
- Use the same key provider for both the source and the destination vCenter Server instances. For more information, see vSphere Native Key Provider Overview in the vSphere Security Guide.
To ensure that both sites use the same vSphere key provider, for example, backup the key provider from site A then restore it and set it as default in site B.
- In vSphere, the encrypted virtual machines require an encryption storage policy. For more information, see Create an Encryption Storage Policy and Create an Encrypted Virtual Machine or Encrypt an Existing Virtual Machine or Virtual Disk in the vSphere Security Guide.
- Configure a key provider in vSphere. For more information, see Virtual Machine Encryption in the vSphere Security Guide:
- Prerequisites for cloud sites backed by VMware Cloud Director:
-
- Verify that the same key provider is used in both the source and the destination vCenter Server instances. For more information, see vSphere Native Key Provider Overview or Set up the Key Management Server Cluster in the vSphere Security Guide.
- Verify that the Organization Administrator role has the vApp: View VM and VM's Disks Encryption Status right. For more information, see Rights in Predefined Global Tenant Roles in the VMware Cloud Director Tenant Portal Guide.
- Add the encryption-enabled storage policy to a provider VDC. For more information, see Add a VM Storage Policy to a Provider Virtual Data Center in the VMware Cloud Director Service Provider Admin Portal Guide.
- Add the encryption-enabled storage policy to an organization VDC. For more information, see Add a VM Storage Policy to an Organization Virtual Data Center in the VMware Cloud Director Service Provider Admin Portal Guide.
- Create an encrypted virtual machine by applying the encryption-enabled storage policy. Replications for encrypted virtual machines can only include virtual machines with an encryption-enabled storage policy.
- Verify that your session is extended to the site in which the vApps or virtual machines you are about to replicate reside. For more information, see Authenticating to paired remote cloud sites.
Procedure
Results
The new replication that contains only encrypted virtual machines uses encryption for the replication data communication.