This section describes how to deploy, configure, and undeploy PrimaryIO Hybrid Cloud Data Management (HDM) 2.1.3 for enabling migrations of virtual machines to VMware Cloud Director (VCD).
HDM deployment involves the following six steps, each of which are discussed in detail in the sections below:
The HDM Appliance manages on-premises and cloud HDM operations. This section covers the following topics for deployment and configuration of the HDM Appliance:
The HDM Appliance is deployed from the OVF shipped as part of the HDM package. Ensure that the placement and sizing of the deployment conforms to the requirements mentioned above.
Use the Deploy OVF Template option in vCenter to deploy the Appliance as illustrated below:
Network configuration of the HDM Appliance requires the user to specify the available networks into four categories, as described in the Network Requirements and HDM Resource Requirements sections, above. While they can point to the same network, the best practice is to leave them separate. In addition, it should be specified whether the appliance will have a static IP or employ DHCP.
For all four network categories, choose whether a static IP or DHCP will be utilized as the IP allocation mechanism. If static is chosen, the following details will also be required:
Skip this configuration if DHCP is chosen.
Note:
The setting in Default gateway network should enable that traffic for other subnets to be routed through its interface. This will generally be the WAN network, but be sure to verify the specifics for your network.
In the field Default Gateway set the default gateway for the chosen network under Default gateway network.
If this information is entered incorrectly, the deployment will eventually fail, and will require an HDM Reset
Figure 8b: Configuring Gateway, NTP and Default Gateway
Complete the rest of the wizard and wait for the deployment to complete. Once the deployment has completed, use vCenter to power on the appliance.
(This step should only be performed for Cluster mode deployments of HDM)
VMware HA should be enabled on the cluster where the HDM appliance has been deployed. Follow these procedures to do this:
Note: The on-premises vCenter should be added should to the same location where the HDM appliance has been deployed.
Prerequisites:
**Note**: The PrimaryIO vCenter plugin will be automatically registered on all vCenter instances that are configured using _enhanced linked mode_.
A license key is required to activate the newly-deployed HDM. A trial license will be shared with the product which can be used to activate HDM.
Note: The HDM configuration page may take a few minutes to load, as product settings need to be initialized.
Steps to add a license:
This section covers the steps for completing the deployment of HDM on-premises. This section will explain how to:
The on-premises deployment may take anywhere between 10 and 20 minutes, depending on the network bandwidth and storage. Any failure-retries performed by HDM during the deployment process are logged into vCenter events. Either the hdm or the com.primaryio keyword can be used in vCenter Event Search to search for events generated by HDM.
Prerequisites:
It is assumed that the HDM appliance deployment and configuration has been executed successfully. Ensure that the plugin has been registered on vCenter, the HDM icon is visible on the vCenter home screen, and a valid HDM license has been added to activate the product.
Steps for deployment:
The Administrator can choose either DHCP or static IP for the IP address allocation. If static IP is chosen, any unused IP address or IP ranges, along with the gateway, subnet mask, domain search path, and any DNS or NTP server. More details on these inputs can be found in the Deployment Requirements section. Each of these steps will need to be repeated for:
Note:
This section covers the steps for deploying HDM in the cloud. It assumes the on-premises deployment of HDM has executed successfully. This section will explain how to:
Adding the cloud may take anywhere between 20 and 30 minutes, depending on the bandwidth and latency of the WAN. Any failure-retries performed by HDM during the deployment process will be logged into vCenter events. Either the hdm or the com.hdm keyword can be used in vCenter Event Search to search for events generated by HDM.
Prerequisites:
Ensure that the vCenter cloud environment is reachable from the HDM appliance. If the cloud vCenter is on the WAN network and it is not reachable through the appliance’s default route, then a static entry must be added to the HDM appliance to reach it. Follow these steps to complete this action:
vim /etc/pio.routes and add the entry ens256|<cloud_subnet>|<gateway_to_access_cloud>
Example: ens256|10.3.0.0/24|10.1.0.1
/usr/bin/setup/network.sh
Steps for deployment
Select the cloud type, then enter the cloud credentials and the cloud DNS.
Note: In the current release, the cloud type is just notional; deployment doesn’t change based on which cloud type is selected.
Select the cluster, resource pool, datastore and VM folder on the cloud where the HDM components will be deployed.
Note: Select shared datastore in the cloud when deploying HDM components.
The administrator can either use DHCP or Static IP for the IP address allocation. If static IP is chosen, the administrator will need to specify any unused IP address or IP ranges along with the gateway, subnet mask, domain search path, and any DNS or NTP server.
The administrator can either use DHCP or Static IP for the IP address allocation. If static IP is chosen, the administrator will need to specify any unused IP address or IP ranges along with the gateway, subnet mask, domain search path, and any DNS or NTP server.
If the cloud vCenter or ESXi has been added using FQDN, the DNS nameserver must be explicitly added in the HDM cloud cache component. The following procedure should be used:
etc/resolv.conf
required for resolving the FQDNOnce the on-premises and cloud deployments are complete, there are multiple ways to view the deployed components and their states:
After successfully installing HDM in the cloud, the appliance control panel will list each component and their health.
Figure: HDM components after deployment
In addition to the Appliance Control Panel, this information is also available on vCenter on the HDM plugin by selecting Menu, followed by HDM, Administration, HDM Health, and then Component Health.
After successfully deploying to the cloud, the on-premises vCenter will show the cloud state as installed. This can be viewed by selecting PrimaryIO, followed by Administration, then Clouds View.
Notes:
HDM requires the on-premises VMs to be monitored for I/O by HDM. Monitoring helps to:
This is done by creating an HDM SPBM cache type policy and applying that policy to the existing VMs. Detailed steps are provided below.
Prerequisites
Steps
This will create an SPBM cache type policy for HDM. The default name for the policy is HDM Analyzer Profile. This profile can be viewed in the on-premises vCenter by selecting Home, followed by Policies and Profiles, then VM Storage Policies.
This newly created HDM policy will be applied to all virtual machines under the cluster, and will enable monitoring for I/O activity. A reconfiguration task will be generated for each virtual machine when applying the HDM SPBM policy. If VMs have been successfully reconfigured, VM policies for these virtual machine will have ‘HDM Analyzer Profile’ applied against each of their VMDKs.
Once the policy has been applied, the user can check analyzer summaries by selecting VM->Monitoring->PrimaryIO from Host and Clusters view.
Note:
1.The Enable IO Monitoring step can be executed any number of times to enable monitoring for new VMs since the last execution.
Note: This step must not be executed for a VM that will be migrated to the cloud.
Monitoring a VM is a low overhead activity and is done transparently without affecting the ongoing I/Os or operations. However, if you don’t want HDM to monitor certain VMs, take the following steps:
Note: HDM cannot migrate a VM that does not have an HDM SPBM policy. However, the SPBM policy can be applied to a VM at any time, thereby making it available for migration.
HDM is integrated with an SQS (Simple Queue Service from AWS) message bus. HDM sqs-python is a python-based library that provides an interface to manage and operate HDM.
Client Application : Clients will be written by a third party and will use the sqs-python library to send HDM command messages and receive responses.
SQS Messaging Service : This service receives command requests from the client and passes them to HDM. The responses are then received from HDM and passed back to the client.
HDM : HDM acts as the server for the commands and sends responses. There is also a periodic heartbeat between HDM and the client, for the client to be aware of the server's system state.
For third-party integration to work, after deployment the HDM appliance must be configured with the message bus. HDM will then listen and execute operations posted on this bus and send back the status of these operations to the caller.
Pre-requisites
Steps
Note: The PrimaryIO Appliance should have access to the Internet for warm or cold migration through SQS.
Common failure scenarios and possible reasons are provided below. If the failure is not one of the above reasons and the error message is not clear enough, please contact PrimaryIO Support.
Here are some common reasons for deployment failures:
Usually when the deployment UI wizard or vCenter tasks fail, one of the above error messages will appear. After the error has been rectified, a re-deployment can be initiated, or an HDM reset followed by re-deployment can be attempted.
Common reasons for undeployment failures are:
vCenter tasks will provide the reasons for undeployment failures. If it is one of the above, rectify the problem and retry the operation.
HDM support can be reached via email: support@primaryio.com
The email should include the following information:
Email attachment : Attach the relevant logs (as described in HDM Support Logs section)
If the attachment size is too large, an alternate shared location may be provided by HDM support to enable the logs to be uploaded.