What Region for the Virtual Machine
If using CloudM Migrate Hosted, upon receipt of the license for CloudM Migrate you’ll have a link to access the application.
For Google as a destination, all CloudM Migrate Hosted instances are hosted in Google Cloud EU West.
Prerequisites
- An account in GCP with permissions to create a project (resourcemanager.projects.create role) or owner on existing project.
- The ability to run Powershell Script as Administrator.
- A browser window open and authenticated into the GCP tenant. This must be the last browser tab you have used.
Service Account and P12 or JSON Access Key for Google Cloud Storage
A Service Account needs to be created with the correct scopes for the data access and an associated P12 or JSON key. This account is entered in the configuration and the P12 or JSON key file is uploaded into CloudM Migrate.
The whole process can be performed via a PowerShell script.
Install the Google Cloud SDK
- Download and install the Google Cloud CLI.
- Run PowerShell as Administrator and initilize the Google Cloud SDK with
gcloud init
. - Enter 1 to choose
Re-initialize this configuration [default] with new settings
- Enter 2 to choose
Log in with a new account
and login with a Super Admin account. - Select Allow to give permissions the SDK permissions to access the Super Admin account. The website will close, return to the PowerShell instance.
- Enter Y to create a new project.
- Enter a Project Name between 6-30 all lowercase letters.
Note: An error
Operation failed: 7: Permission 'resourcemanager.projects.create' denied on parent resource
is returned if not using a Super Admin.
Create the Key
- Right click and save the GCP Configuration script to a working directory.
- Execute the script in PowerShell as Administrator.
- You’ll be prompted to enter a Project ID which is the Project Name created previously.
- You’ll be prompted to enter a Service Account ID which is a new account that will be created and used in GCP. The Service Account ID must between 6-30 all lowercase letters.
- You’ll be prompted to enter a region. Enter either us-central1 or europe-west1, depending on the region that you want to store your data in.
- You’ll be prompted to enter a BucketName. enter a name for your storage bucket, adhering to the naming conventions outlined in this article from Google.
- The Powershell script will now create the Service Account and Bucket. This may take a few minutes.
- Once the Powershell has stopped, you can add a KeyName. This step is optional, but, if you do enter a Key Name, it must be between 6 and 30 letters, digits, hyphens or underscores. It must start with a lower case letter, followed by one or more alphanumerical characters that can be separated by hyphens or underscores. It cannot have a trailing hyphen or underscore.
- Optionally, set the StorageClass for the Bucket Storage. It must be one of ‘STANDARD’, ‘NEARLINE’, ‘COLDLINE’ or ‘ARCHIVE’.
- Optionally, set the ServiceAccountKeyType. It must be either ‘json’ or ‘p12’.
- Now, on the Output Path line, specify where the JSON Key and Log will be exported to on your computer (e.g. C:\CloudM GCPConfig). The path will default to USERHOME GCPConfig.
- The Powershell will run and provide the following details (that you should note down)
- Service Account Email Address
- Path to Service Account JSON key
- Bucket Url
- KMS Key Path
- Encryption Key File Path (.gkey) - OPTIONAL - If selecting Customer-managed key rather than the recommended Google-managed key for the bucket, you will need to supply your own local encryption key from a file. See Use customer-supplied encryption keys | Cloud Storage to generate the key file which should be a text file containing a 32 bytes base64 string saved as XXXX.gkey.
Note: Replication can cause a delay of up to 2 hours before these can be used to migrate data.