Configure disaster recovery using JetStream
This document explains how to deploy and configure a JetStream disaster recovery (DR) solution on Google Cloud VMware Engine. This DR solution provides the following benefits:
- You can ensure business continuity in the event of a disaster by setting up a Google Cloud VMware Engine private cloud as a recovery site for your on-premises applications.
- You can protect workloads that are already running on VMware Engine private clouds. You can do this by setting up a private cloud as a primary site that is protected by a recovery site at a different Google Cloud location, or in your on-premises VMware environment.
- You can eliminate the need for a secondary physical data center, which reduces your total cost of ownership (TCO).
- You can provide global geographic resilience by leveraging Google Cloud's worldwide locations where VMware Engine is deployed.
To use this guide, you need the following:
- JetStream version 5.0.8 or newer.
- VMware Engine private clouds that run vSphere 8.0.
You must install, configure, and manage the JetStream solution in your private cloud, and provide your own licenses for the JetStream solution. You must also create and configure your VMware Engine private clouds, and provide your own VCF licenses for the VMware Engine nodes.
This DR solution continuously replicates critical infrastructure and application virtual machines (VMs) from your on-premises VMware environments. Replicated VMs are stored in your private cloud and in Cloud Storage, which provides multiple disaster recovery options.
Before you begin
Before you can use JetStream Virtual Replication from your on-premises environment to your private cloud, complete the following prerequisites:
- Connect your on-premises network to your VMware Engine private cloud.
- Configure DNS for management access to forward
requests from your on-premises network to your private Cloud DNS servers. To
enable forwarding of DNS lookup, create a forwarding zone entry in your
on-premises DNS server for
gve.googto private Cloud DNS servers. - Set up DNS lookup for on-premises vCenter components to be forwarded to your on-premises DNS servers. The DNS servers must be reachable from your private cloud.
- Configure DNS for the JetStream network.
- Create a DNS A record for the JetStream Management Server Appliance (MSA).
- Create a Service Subnet (or NSX Segment) for the JetStream deployment. See Create subnets.
- Ensure that the VMware Engine infrastructure, the JetStream MSA,
and your workstation can resolve the FQDNs for VMware Engine
(
gve.goog) and the JetStream MSA appliance (your domain). - Configure internet access for VMs on VMware Engine.
- Configure DHCP for the JetStream network (static IP is also supported).
- Configure Cloud Storage service accounts by using keyed-hash message authentication codes (HMAC). See Interoperability with other storage providers and Migrate from Amazon S3 to Cloud Storage.
- Decide on the Cloud Storage bucket region you plan to use for your solution. Note that only regional buckets are supported during preview.
- Identify a VMware Engine solution user account to use with the MSA, and set a strong password for the solution user account.
Optional configuration on your private cloud
- Create one or more resource pools on your private cloud vCenter to use as target resource pools for VMs from your on-premises environment.
- Create one or more folders on your private cloud vCenter to use as target folders for VMs from your on-premises environment.
- Create subnets on your private cloud for your failover network and set up required firewall rules.
Deploy JetStream disaster recovery
To deploy the JetStream solution in your on-premises environment and on your private cloud, follow the JetStream documentation. The private cloud can be a protected site or a recovery site of your JetStream solution.
To deploy and configure JetStream on Google Cloud, complete the following tasks:
- Deploy JetStream DR on VMware Engine
- Configure the JetStream service account
- Set the Cloud Storage region
- Configure a storage site
- Configure VM protection
Deploy JetStream DR on VMware Engine
- Download the JetStream MSA OVA ZIP archive.
- Deploy the JetStream Management Server Appliance.
Note: Set the password for the
adminuser during OVA deployment. See Deploy MSA. - Install the vCenter plugin. Note: Use the elevated privilege solution user as the service account for installing the vCenter Plugin. See solution user accounts and Install plugin.
Configure the JetStream service account
To configure the JetStream service account, complete the following steps:
Sign in to the MSA appliance as
adminby using the VM console or SSH.Run the
manage_iofrest_user.ps1script from the MSA:cd /opt/fio/vme2/python/ pwsh ./manage_iofrest_user.ps1Example execution:
[admin@jetdr-msa-508-101 ~]$ cd /opt/fio/vme2/python/ [admin@jetdr-msa-508-101 python]$ pwsh ./manage_iofrest_user.ps1 SUCCESS: Check for powershell version passed SUCCESS: Check for module VMware.vSphere.SsoAdmin passed SUCCESS: Check for module VMware.VimAutomation.Core passed Enter vCenter IP or FQDN: <gcve-vcenter/IP-address> Enter vCenter user name: <solution-user-0x@gve.local> Enter vCenter password: ***************** Enter MSA IP or FQDN: <msa/IP-address> Enter MSA user name: admin Enter MSA password: ********* Disconnecting any connected viservers and ssoadmin servers from the powershell session vCenter version is 8.0.3, proceeding with user configuration. ### update_rest_user_on_msa ### Updating credentials of jetstream iofrest user on MSA https://<msa/IP-address>/jss/ms/login ### get_request ### Successfully obtained MSA session id ### get_rest_user ### Fetching credentials of jetstream iofrest user https://<msa/IP-address>/jss/ms/login ### get_request ### Successfully obtained MSA session id ### get_request ### Couldn't get iofrest user details from MSA <msa/IP-address> User details not present on MSA. ### create_rest_user ### Creating jetstream iofrest user Role Partner REST Read+Write already exists on the vCenter. Checking if it has required privileges. Role Partner REST Read+Write has required privileges. Continuing. User jetstream already exists in the vCenter. Password for jetstream@gve.local successfully refreshed. ### get_current_msa_version ### Current MSA plugin version is 5.0.8.665 ### get_rest_user ### Fetching credentials of jetstream iofrest user https://<msa/IP-address>/jss/ms/login ### get_request ### Successfully obtained MSA session id ### get_request ### iofrest user successfully updated on MSA [admin@jetdr-msa-508-101 python]$Perform the IO Filter Package Installation.
Set the Cloud Storage region
To set the Cloud Storage region, complete the following steps:
Sign in to the MSA appliance as
adminby using the VM console or SSH.Edit the server configuration by replacing
<cloud-storage-region>with your specific Cloud Storage region (for example,us-central1):sudo echo "jss.dr.rs.cloudian.region=<cloud-storage-region>" | \ sudo tee -a /var/lib/vme2/conf/server.propertiesRestart the MSA service:
sudo systemctl restart msa-tomcatYou see a configured
server.propertiesfile that resembles the following:cat /var/lib/vme2/conf/server.properties # Properties file for the VME2 server configuration jss.dr.rs.cloudian.region=<cloud-storage-region>
Configure a storage site
To configure a storage site, complete the following steps:
- Sign in to vCenter with the vSphere web client and navigate to the data center level.
- Click the Configure tab, and then select JetStream DR.
- In the JetStream UI, click the Storage Sites tab.
- Click + Add Storage Site.
- In the Add Storage Site window, enter the following settings for the S3 storage:
- Storage site type: Region-based S3.
- Storage site name: A name for identification in the JetStream client.
- S3 storage endpoint:
storage.googleapis.com - Access key: The Cloud Storage HMAC access key.
- Secret key: The Cloud Storage HMAC secret key.
Configure VM protection
To configure VM protection, complete the following steps:
- Deploy the Disaster Recovery Virtual Appliance (DRVA).
- Create a Replication Log Volume.
- Create a Protected Domain.
- Select VMs for Protection.
What's next
- Read the JetStream documentation for details on Day 2 management of JetStream.
- Learn about high availability for VMware virtual machines.