Create a replication for encrypted virtual machines
The storage policy drives the encryption for virtual machines. Enable the encryption in the storage policy then assign it to the virtual machine (VM) configuration files and its disks. The replication follows the encryption status. First encrypt the VMs before adding them in the replication.
- Prerequisites for the versions in the source and in the destination sites:
- For Cloud Director sites, usevCenter Server7.0 U2 and later, andVMware Cloud Director10.2 and later.
- ForvSphereDR and migration, usevCenter Server7.0 U2 and later, andVMware Cloud Director Availability4.5 and later in both the source and the destination site.
- WithvCenter Server7.0 U2 and later, you can use an external KMS orvSphere® Native Key Provider™. Verify that the backingvCenter Serverinstances in the destination have a KMS with the same name and with access to the same key used to encrypt the source VM.VMware Cloud Director Availabilitythen ensures the necessarily encryption keys are pushed to the hosts responsible for the replications.The prerequisite for the same encryption keys comes from the underlying replication technology and applies for all supported topologies, both Cloud Director sites and for vSphere DR and migration.
- Prerequisites for theESXihosts in both the source and in the destination sites:
- Install the HBR agent VIB in all theESXihosts. 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://file.vCenter_Replication_Management_Appliance_Address:8043/hbr-agent.vib
- https://file.Replicator_Appliance_Address/hbr-agent.vib
- Alternatively, from the appliance filesystem, download the/opt/vmware/hbr/vib/vmware-hbr-agent-file.build_number.i386.vib
ESXihost, providing end-to-end encryption. Installing the HBR agent in the destinationESXihost allows reversing the replications and the reverse replications traffic is also encrypted end-to-end.For more information about VIBs and how to install them, seeVIBs, Image Profiles, and Software Depotsin theVMware ESXi Upgrade Guide. - Prerequisites for thevCenter Serverinstances in both the source and in the destination sites:
- Configure a key provider invSphere. For more information, seeVirtual Machine Encryptionin thevSphere Security Guide:
- ForvSphere7.0 U2 and later, configure a VMwarevSphereNative Key Provider which does not require an external key server. For more information, seeConfiguring and Managing vSphere Native Key Providerin thevSphere Security Guide.
- Alternatively, forvSphere7.x, 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, seeSet up the Key Management Server Clusterin thevSphere Security Guide.
- Use the same key provider for both the source and the destinationvCenter Serverinstances. For more information, seevSphere Native Key Provider Overviewin thevSphere 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.
- InvSphere, the encrypted VMs require an encryption storage policy. For more information, seeCreate an Encryption Storage PolicyandCreate an Encrypted Virtual MachineorEncrypt an Existing Virtual Machine or Virtual Diskin thevSphere Security Guide.
- Prerequisites for cloud sites backed byVMware Cloud Director:
- Verify that the same key provider is used in both the source and the destinationvCenter Serverinstances. For more information, seevSphere Native Key Provider OvervieworSet up the Key Management Server Clusterin thevSphere Security Guide.
- Verify that theOrganization Administratorrole has thevApp: View VM and VM's Disks Encryption Statusright. For more information, seeRights in Predefined Global Tenant Rolesin the.VMware Cloud DirectorTenant Portal Guide
- Add the encryption-enabled storage policy to a provider VDC. For more information, seeAdd a VM Storage Policy to a Provider Virtual Data Centerin the.VMware Cloud DirectorService Provider Admin Portal Guide
- Add the encryption-enabled storage policy to an organization VDC. For more information, seeAdd a VM Storage Policy to an Organization Virtual Data Centerin the.VMware Cloud DirectorService Provider Admin Portal Guide
- Create an encrypted VM by applying the encryption-enabled storage policy. Replications for encrypted VMs 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 Director sites.
With
VMware Cloud Director Availability
4.7.2 and later, you can create the following replications for encrypted objects.
- You can replicate a vApp containing both encrypted and non-encrypted VMs.
- You can create a replication for an encrypted VM with enabled virtual Trusted Platform Module (vTPM), and with full, partial, or no encryption of the attached storage disks.
- You can also create a replication for a non-encrypted VM and encypt the VM as a part of the replication process.
- In the left pane, choose a replication direction.
- For a replication between cloud sites backed byVMware Cloud Director, choose either an incoming replication from a cloud site, or an outgoing replication to a cloud site.
- ForvSphereDR and migration, encrypted replications support all replication directions and you can choose any replication direction.
- To create a replication for encrypted virtual machines, select either new protection or new migration.
- Click.
- Click.
- Complete theNew Replicationwizard.
- On theSourceworkload page, select your workloads and clickNext.WithVMware Cloud Director Availability4.7.2 and later, in a replication for encrypted virtual machines, you can select encrypted and non-encrypted virtual machines.
- On the next page, select a storage policy placement for the recovered workloads that showsEncryptedin the Encryption capability column, then clickNext.After selecting an encrypted virtual machine, you can only select an encrypted storage policy.
- On theSettingspage, configure the replication settings, then clickNext.WithVMware Cloud Director Availability4.7.2 and later, in a replication for encrypted virtual machines, you can select both encrypted and non-encrypted disks.After you replicate a non-encrypted to an encrypted virtual machine, all newly added disks to the destination machine inherit the encrypted storage policy, which encrypts all disks on the VM.
- On theReady to Completepage, verify that the replication settings are correct, then clickFinish.
The initial synchronization of a replication containing an encrypted virtual machine takes longer to complete than a replication with the same settings that contains a non-encrypted virtual machine with the same hardware.
The new replication that contains only encrypted virtual machines uses encryption for the replication data communication.