Google Cloud

Migrate to Containers (M2C) Complete Guide: VM → GKE/Cloud Run Modernization

2026-05-24
NicheeLab Editorial Team

Migrate to Containers (M2C) is a modernization tool that automatically containerizes apps running on legacy VMs and deploys them to GKE / Cloud Run / Anthos. It delivers a more advanced "app replatform" than VM migration (M2VM), letting you cut operational costs, increase deployment frequency, and become cloud-native all at once.

M2VM vs M2C Comparison

ItemM2VM (VM Migration)M2C (Containerization)
ConversionVM → GCE VMVM → Container + K8s/Cloud Run
ModernizationLift & ShiftReplatform
Operational burdenContinued VM managementManaged K8s/Run
Migration difficultyLowMedium
Long-term impactLimitedSubstantial (Auto Scale / DevOps)

Supported Platforms

Sources

  • VMware vSphere
  • Hyper-V
  • Physical servers (Linux)
  • AWS EC2
  • Azure VM
  • Existing GCE VMs

Targets

  • GKE Standard / Autopilot
  • Cloud Run
  • Anthos GKE on-prem / AWS / Azure

Supported App Stacks

  • Linux: Java (Tomcat / WildFly / WebSphere / JBoss), Python (Flask / Django), Node.js, .NET Core, Ruby, PHP
  • Windows: IIS .NET Framework 4.x, ASP.NET, and Windows containerization

Migration Phases

  1. Discovery: Scan source environments and select target apps
  2. Assessment: Use the Fit Assessment Tool to judge containerization feasibility
  3. Extract: Extract app files and dependency libraries
  4. Generate Artifacts: Auto-generate Dockerfile + Kubernetes manifests / Cloud Run YAML
  5. Customize: Apply manual adjustments as needed
  6. Build & Deploy: Cloud Build → Artifact Registry → GKE / Cloud Run
  7. Test & Cutover: Validate behavior, then cut over to production

Fit Assessment Tool

Before migrating, each app's containerization fit is rated on a 5-level scale:

  • Fit: Containerizes without issues
  • Minor Issues: Minor adjustments needed
  • Major Issues: Significant fixes required
  • Not Fit: Difficult to containerize (e.g. kernel dependencies, physical device requirements)

Typical Success Stories

Case 1: Financial Institution (500 Java Apps)

  • Migration period: 6 months
  • Scope: 500 Tomcat / WildFly apps running on VMware
  • Target: GKE Autopilot
  • Results: 40% lower operational costs, 10x deployment frequency, 80% lower Mean Time To Recovery (MTTR)

Case 2: SaaS Startup (100 Microservices)

  • Migration period: 3 months
  • Scope: Node.js / Python microservices running on AWS EC2
  • Target: Cloud Run
  • Results: 50% lower infrastructure costs (cold starts acceptable), 60% lower operational labor costs

Phased Modernization Strategy

  1. Phase 0: Assess — Select targets using Fit Assessment
  2. Phase 1: Quick Wins — Move simple stateless apps to Cloud Run
  3. Phase 2: Standardize — Move mid-size apps to GKE and put CI/CD in place
  4. Phase 3: Cloud Native — Rearchitect into microservices where it makes sense
  5. Phase 4: Optimize — GitOps + Service Mesh + Observability

Post-Migration Optimization

  • Auto-scale with HPA / VPA
  • Externalize databases to Cloud SQL / AlloyDB
  • Externalize state to GCS / Filestore
  • Harden security with Workload Identity
  • Cloud Monitoring + SLO design
  • Canary releases via Cloud Deploy
  • mTLS via Anthos Service Mesh

What is Migrate to Containers (M2C)?

A tool that automatically containerizes Linux / Windows apps running on VMware, physical servers, AWS, or Azure and deploys them to GKE / Cloud Run (formerly known as Migrate for Anthos).

How does it differ from VM migration (M2VM)?

M2VM moves VMs as-is to GCE, while M2C containerizes apps and deploys them to K8s / Cloud Run. M2C delivers far greater modernization benefits.

Which source apps are supported?

Java / Python / Node.js / .NET Core on Linux, plus IIS .NET Framework apps on Windows. Tomcat / WildFly / WebSphere and other stacks are also supported.

How does the containerize process work?

The M2C agent analyzes the source VM → extracts the required files → generates a Dockerfile + Kubernetes manifests → pushes the image to Artifact Registry.

Can stateful apps be migrated?

Yes. PVCs (Persistent Volume Claims) are generated automatically, and it is recommended to externalize data to GCS / Cloud SQL or similar managed services.

How much does it cost?

M2C itself is free; you only pay for the target GKE / Cloud Run resources.

How does this relate to Anthos migration?

M2C can deploy to GKE / Cloud Run / Anthos. With Anthos, you can even target on-premises Kubernetes.

What are some success stories?

A financial institution containerized 500+ Java apps and migrated them to GKE in 6 months, cutting operational costs by 40% and increasing deployment frequency 10x.

Related Articles: Migration / Modernization

Migrate to Virtual Machines (M2VM) 完全ガイド|VMware/AWS/Azure → GCE 移行 (GCP)

Google Cloud Migrate to Virtual Machines (旧 Velostrata) の全機能解説。VMware / Hyper-V / AWS EC2 / Azure VM / 物理サーバから GCE への Stream Migration、Test Clone、AWS Connector、対応 OS、料金を 2026 年最新版で網羅。

Anthos / GKE Enterprise 完全ガイド|マルチクラウド K8s・Fleet・Service Mesh (GCP)

Google Cloud GKE Enterprise (旧 Anthos) の全機能解説。Fleet、Config Sync、Policy Controller、Anthos Service Mesh、GKE on AWS/Azure/VMware/Bare Metal、料金、EKS Anywhere / Azure Arc 比較を 2026 年最新版で網羅。

オンプレ → GCP 移行戦略|TCO・ハイブリッド・VMware Engine・コンプライアンス (2026)

オンプレミス環境から Google Cloud (GCP) への移行戦略完全ガイド。TCO 試算、VMware Engine、Migrate to VMs、Migrate to Containers、Cloud Interconnect、GKE Enterprise (Anthos)、Assured Workloads、日本のコンプライアンス対応を 2026 年最新版で網羅。

GCP Professional Cloud Developer (PCD) 完全ガイド|Cloud Run・GKE・CI/CD・APM

Google Cloud Professional Cloud Developer の試験範囲、Cloud Run / GKE / Cloud Build / Cloud Trace、AWS DVA / Azure AZ-204 比較、学習ロードマップを徹底解説。

* Google Cloud is a trademark of Google LLC. For the latest details, check the official M2C docs.

Check what you learned with practice questions

Practice with certification-focused question sets

View GCP exam prep page
Author

NicheeLab Editorial Team

NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.


Related articles
Google Cloud

Google Cloud Certification Roadmap (2026)

Choose your GCP certification path — Foundational, Associate...

Google Cloud

CDL Cloud Digital Leader: Complete Exam Guide (2026)

Pass the Cloud Digital Leader exam — cloud business value, G...

Google Cloud

GAIL Generative AI Leader: Complete Exam Guide (2026)

Pass the Generative AI Leader exam — Gemini, Vertex AI, Work...

Google Cloud

Vertex AI Fundamentals for GCP Certs (2026)

Vertex AI basics every cert candidate needs — Workbench, Pip...

Google Cloud

Associate Cloud Engineer (ACE): Complete Guide (2026)

Pass the Associate Cloud Engineer exam — Console, gcloud, pr...

Browse all Google Cloud articles (103)
© 2026 NicheeLab All rights reserved.