Google Cloud Migration Center Discovery Client Installation on Windows Server

Google Cloud Migration

In todays post we will focus on the procedure of installing Google Cloud Migration Center Discovery Client Installation on Windows Server. In my case I will use Windows Server 2022 but any modern Windows based operating system will be sufficient. We will use connected mode where we will gather all data from on-premises systems and upload it to Migration Center.

Prerequisites

Here are some prerequisites which we need to fulfil before we start the procedure. For best performance physical or virtual machine where we will install discovery client needs to have 2 vCPU, 12 GB of RAM and 30 GB of free disk space. With that specs we will be able to scan up to 10000 Servers.

Installation requirements

  1. Operating System: We need Windows Server 2016 or later or Windows 10 or later with 2 vCPU, 12 GB of RAM and 30 GB of free disk space with Administrative rights.
  2. Software - we need Google Chrome or Microsoft Edge with -2 latest revisions.
  3. Firewall and Network Settings: We need to ensure that the necessary firewall rules allow traffic to and from the Google Cloud services. We need to as well ensure that our “Discovery VM” has access to vCenter Server which we will scan against it. In case you are using Proxy we need to whitelist following URLs:
    1. https://accounts.google.com
    2. https://console.cloud.google.com/
    3. https://www.googleapis.com
    4. https://cloudresourcemanager.googleapis.com
    5. https://migrationcenter.googleapis.com
    6. https://iam.googleapis.com
    7. https://oauth2.googleapis.com
    8. https://www.gstatic.com
    9. https://fonts.gstatic.com
  4. Google Cloud:
    1. Make sure you have a Google Cloud project set up.
    2. Make sure that you have permissions to enable Google Compute Engine API and activate Migration Center.
    3. We need to enable Cloud Resource Manager API.
    4. Service Account with key downloaded. It needs to have following permissions roles/migrationcenter.discoveryClient. If you don’t know how to create a service account key follow this guide from Google Cloud documentation Create a service account key.

Target vCenter Requirements

  1. vCenter Server Credentials - in order to be able to scan vCenter Server we need credentials to access it.
  2. Statistics on vCenter Server vCenter Server itself collects statistics and there are four levels of statistics. Depending on how accurate data we want to gather we need to change statistics to level 3. If you don’t know how to change statistics level in vCenter simply follow this article Configure statistics collection intervals in the vSphere client.
  3. vCenter Server User User we will use to connect from Discovery Agent to vCenter needs to have read privileges on VMs running on vCenter Server. You can create custom role with minimal set of privileges.

Step 1: Google Cloud Project Creation and API enablement

  1. Navigate to Google Cloud Console URL - https://console.cloud.google.com. Google Cloud Project Setup - 1
  2. After succesfully logging into Google Cloud console we will start with a new project creation. Google Cloud Project Setup - 2 Click on the project name and choose NEW PROJECT.
  3. We need to provide unique project name, choose billing account, organization and project location. After few seconds new project will be created. We can access it directly from the notifications menu. Google Cloud Project Setup - 3 Google Cloud Project Setup - 4
  4. In top search menu we can start typing migration center and select it. Google Cloud Project Setup - 5
  5. On this first simple page we click Get Started. Google Cloud Project Setup - 6
  6. This leads us to section where we need to enable Migration Center APIs (Migration Center API and Rapid Migration Assessment API). Our logged user needs to have permissions to enable them. If not, we can ask someone with permissions to perform this step for us. Google Cloud Project Setup - 7
  7. As the next step we need to choose a geographical region where Migration Center stores the data. I will choose europe-west4 which is located in Eemshaven, Netherlands. This location cannot be changed later on. Google Cloud Project Setup - 8
  8. We click next and if you are working with someone like myself - Customer Engineer you can enter Expert Request if you have it :) Google Cloud Project Setup - 9
  9. On the next screen we can configure our migration preferences. For the time being we accept default settings. We can change those later. Google Cloud Project Setup - 10
  10. We have successfully completed all steps needed in Migration Center. Google Cloud Project Setup - 11
  11. Migration Center is ready to be used :) Google Cloud Project Setup - 12

Step 2: Install the Discovery Client

For the simplicity I will install Google Chrome on my Windows Server and login to Google Cloud from there.

  1. Download the Discovery Client:

    1. Visit the Google Cloud Migration Center. Google Cloud Migration Center Discovery Client Installation 2
    2. Find the link to download the Windows installer for the Migration Center Discovery Client.
    3. After downloading the client we execute installation process. Google Cloud Migration Center Discovery Client Installation 3
    4. We click next and accept the EULA. Google Cloud Migration Center Discovery Client Installation 4
    5. If needed we can change installation path and opt out from diagnostics and metrics being sent to Google alongside with debug and support logs. Google Cloud Migration Center Discovery Client Installation 5
    6. On the last screen we finally can click Install and let the installation proceed. Google Cloud Migration Center Discovery Client Installation 6 Google Cloud Migration Center Discovery Client Installation 7
    7. Software is installed. Google Cloud Migration Center Discovery Client Installation 8
    8. We need to restart Windows after software installation. Google Cloud Migration Center Discovery Client Installation 9
  2. Configure the Discovery Client:

    1. We open the Discovery Client application. It is running in Chrome and our first step is to login to Migration Center. This means we will establish connectivity between Migration Center Discovery Client and Migration Center in our Google Cloud project. Google Cloud Migration Center Discovery Client Configuration 1
    2. As first step Discovery Client checks connectivity to Google Cloud Migration Center. If you click on the button and there is no error we can proceed. Google Cloud Migration Center Discovery Client Configuration 2
    3. On the next screen we login with our credentials to Google Cloud. Google Cloud Migration Center Discovery Client Configuration 3
      Google Cloud Migration Center Discovery Client Configuration 4
    4. After successful login we need to choose Google Cloud project we created before. Google Cloud Migration Center Discovery Client Configuration 5
    5. In the next step we can add service account key which we create before. Google Cloud Migration Center Discovery Client Configuration 6
    6. Our last step in connecting to Google Cloud is provide unique name for our client. Google Cloud Migration Center Discovery Client Configuration 7
    7. Our discovery client is almost ready to be used in discovering assets :) Google Cloud Migration Center Discovery Client Configuration 8

Step 3: Create User in vCenter Server and assign a Role

As we now need to perform some operations in vCenter Server we will switch to it now.

  1. vCenter Server Role Cloning
    1. In first step after logging in to vCenter Server we will navigate to Administration and then Roles. VMware vCenter Server Configuration 1
    2. We can see that we have several pre-defined roles. VMware vCenter Server Configuration 2
    3. We will choose Read-only role and clone it for our purposes. I created role called migration-center-agent-role. VMware vCenter Server Configuration 3
  2. vCenter Server user creation. After creating a role we need to assign it to a user. Let’s create one. Mine will be created in vsphere.local domain.
    1. Choose your domain and cllick ADD. Provide username and password. VMware vCenter Server Configuration 4
    2. In the section Global Permissions click add button. In the new screen choose correct domain, select user and choose role we previously created. VMware vCenter Server Configuration 5
    3. We can confirm if the permissions were assign by click on vCenter Server, ESXi or VMs in Permissions tab. VMware vCenter Server Configuration 6
    4. Now we can proceed with configuration of vCenter Server in Migration Center Client.

Step 4: Configure the Client for Discovery

Once we have configured vCenter Server user and we are connected to our Google Cloud project we can finally connect both resources together.

  1. Select Discovery Sources:
    1. In Migration Center Discovery Client we start by adding vCenter Server credentials. vCenter and Migration Client Configuration 1
    2. We need to provide friendly name for credentials alongside with username and password. vCenter and Migration Client Configuration 2
    3. We need to provide IP or FQDN to our vCenter Server and click test connection. In my case as I am using self signed certificates I had to select Allows HTTPS access using self-signed (less secure) certificates. vCenter and Migration Client Configuration 3
    4. After succesfull connectivity in the section Discovery we see that vCenter scann will be performed. vCenter and Migration Client Configuration 4

Summary

By following these steps, you can successfully install and configure the Google Cloud Migration Center Discovery Client on your Windows Server.

Google Cloud Discovery Agent Proxy URLs

Built with Hugo
Theme Stack designed by Jimmy