Simulating VM migration
Migrating servers to the cloud is an activity that most enterprises have been engaged with since the dawn of the public cloud. Rehost and refactor are two of the five migration strategies detailed by Gartner that are pertinent for server migration. In this recipe, we'll simulate a rehost of a server. We'll migrate a virtual machine from one project/organization to another manually in order to understand an instance's migration.
Getting ready
The following are the initial setup verification steps before the recipe can be executed:
- Create or select a GCP project
- Enable billing and enable the default APIs (some APIs like BigQuery, storage, monitoring, and a few others are enabled automatically)
How to do it...
For this recipe, we'll take a backup of a CentOS VM in RAW virtual disk format. Then, we'll import the virtual disk into our target project and recreate the VM. The following steps explain the creation of the VM:
- First, let's create a CentOS 7 VM and call this our source...