Business Migration? Fear Not! ZStack ZMigrate Migration Software Best Practices

2024-06-11 10:33

Table of Contents

What Are We Talking About When We Discuss Migration

As VMware virtualization replacement becomes a trend domestically, the smooth and efficient migration of services from VMware platforms to IT innovation virtualization cloud platforms remains a critical consideration for users during infrastructure selection.  

Terms like V2V, P2V, live migration, and cold migration often sound deceptively simple to IT professionals, as if a single tool could suffice. However, the term “migration” implied by users typically encompasses multiple dimensions: service migration, application migration, database migration, and full-system migration. In practice, migration involves highly complex factors, such as clarifying dependencies between business virtual machines, planning application downtime and recovery, scheduling service interruptions within maintenance windows, coordinating network resources, evaluating application environments, researching migration methods, conducting validation tests, and preparing rollback and contingency plans. Any oversight or inadequacy in these details may lead to severe production incidents.  

For infrastructure professionals, discussions about “migration” should first prioritize business continuity assurance, followed by project management essentials such as organization, research, methodology, and planning. Tools serve only as supplementary enablers.  

As an infrastructure software vendor serving 3,000+ government and enterprise users, ZStack has accumulated extensive migration experience. With the growing wave of VMware replacements, migration has become a recurring topic in product consultations with customers and partners. This article shares our insights and best practices to comprehensively address migration-related concerns.  

Business Continuity Must Be Prioritized

As an infrastructure software provider, even a simple POC requires meticulous attention before migration begins, as migration inherently carries risks. Insufficient planning and research often lead to high failure rates or “predictable surprises” such as IP conflicts or bandwidth contention, jeopardizing business continuity. Our migration implementation follows a structured project management workflow:  

migration process

Migration tools are merely one component—strategy, processes, and methodology are equally indispensable. Avoid over-reliance on tools alone.  

Choosing the Right Platform

VMware, Hyper-V, and PVE have dominated domestic virtualization markets with their compatibility and performance. However, rising demand for localized solutions and VMware’s subscription model shifts have driven many users toward self-developed Chinese virtualization/cloud platforms. ZStack Cloud and ZStack ZSphere have earned trust through robust features, exceptional performance, and dedicated service.  

ZStack Cloud adheres to the 4S private cloud standard, offering lightweight deployment, open-source core, and versatile editions to meet diverse needs. It delivers advanced private cloud capabilities, elastic bare metal management, enterprise administration, and high-performance load balancing.  

zstack ui

ZStack Cloud

ZStack ZSphere provides a VMware vSphere-aligned virtualization experience, making it the ideal choice for localized data center infrastructure replacement.  

zsphere ui

ZStack ZSphere

Best Practices for Virtualization Migration

Full-system migration remains the primary method for virtualized environments (occasionally supplemented by database or filesystem migration). Challenges include diverse OS versions, non-standard storage/virtualization configurations, driver mismatches for non-standard CPUs/NICs, and storage/network bottlenecks—often requiring hands-on expertise.  

To enable efficient and secure migration to ZStack Cloud or ZStack ZSphere, we offer ZStack ZMigrate. Designed from lessons learned across numerous migration cases, it mitigates common pitfalls with the following advantages:  

  • Zero downtime: Supports both agent-based and agentless migration while systems remain online, minimizing service interruptions  
  • Broad compatibility: Adapts to public/private clouds and virtualization platforms, supporting mainstream Windows/Linux OSes, x86 (Intel/AMD/Hygon/Zhaoxin), and ARM (Kunpeng/Phytium) architectures  
  • Environmental flexibility: Configurable data paths and QoS adjustments for resource utilization during peak/off-peak periods to balance migration success and operational impact  
  • Automated orchestration: Schedules host migration timelines to ensure seamless service cutovers  

Applicable scenarios:  

  • Virtualization/cloud platform migrations:VMware/Hyper-V/KVM VM migrations  
  • Legacy system modernization:Migrating industrial PCs and aging servers to virtualization  
  • IT innovation:Cross-architecture migrations between x86 and Hygon/Zhaoxin/Phytium/Kunpeng platforms  
  • Public cloud interoperability:Cross-cloud or hybrid-cloud migrations (AWS/Azure/GCP/Alibaba Cloud/Tencent Cloud ↔ private clouds)  

Introducing ZMigrate

The software design of ZStack ZMigrate adopts a flexible architecture to better adapt to various complex on-site environments. The main architectural components are as follows:  

ZMigrate

  • Management Node (Server):Responsible for managing the entire data migration process, including lifecycle management of target endpoints, synchronization tasks, and migration cutover.For deployment convenience, the management node incorporates data gateway functionality and can directly use its image as a data gateway.  
  • Data Gateway (Gateway): Performs two roles: data relay and data reception. In standard mode, it receives data from the source and transmits it to target host disks. In mounted disk mode, it acts as a receiver, simultaneously mounting multiple target disks and enabling them on-demand when the target environment is ready—ideal for scenarios where target network environments are activated only during cutover. Multiple gateways can be deployed for large-scale migrations to accelerate progress.  
  • Target Endpoint (Target):The destination platform for data migration, typically a virtualization/cloud platform (standard mode), data gateway (mounted disk mode), or BootImage target machine (PE mode).  
  • Source Endpoint (Source):The origin of data migration, which can be virtual machines or physical hosts.  

All software functionalities stem from real-world scenarios. ZMigrate’s use cases fall into three categories:  

  • Standard Mode  

Most users migrate from existing virtualization/cloud platforms (e.g., VMware) to ZStack. Using VMware vSphere APIs (agentless, recommended), ZMigrate leverages VADP+CBT technology to replicate VMware VM data through encrypted channels to ZStack target VMs (automatically created via ZStack APIs using BootImage). When cutover conditions are met, ZMigrate stops replication, switches the target VM’s boot disk to the source system disk, and starts the ZStack VM to complete migration.  

ZMigrate also supports reverse migration from ZStack back to VMware for rollback scenarios.  

standard mode

  • Mounted Disk Mode  

Used when maintenance windows are uncertain or target IP addresses are unavailable. This mode requires only one IP to copy source data first, with cutover performed after target IPs are ready. Similar to standard mode, the target gateway mounts multiple VM disks to store replicated data. During cutover, ZMigrate automatically creates VMs and attaches the pre-copied disks.  

mounted disk mode

  • PE Mode

For legacy systems (e.g., unmaintained embedded devices, industrial PCs) requiring continuity, PE mode uses an OfflineKit image to boot the source, copy data offline to target VMs, and perform cutover. Agent-based replication is optional for systems without downtime windows but is discouraged for fragile legacy environments to avoid modifications.  

pe mode

Three-Step Migration Process  

Using virtualization platform migration as an example:  

1. Prepare Environment & Start Platform  

After deploying ZStack Cloud/ZSphere, create a ZMigrate management node VM (using Server_gateway image) as both manager and data gateway. For large-scale online migrations, consider adding a dedicated migration network.  

add data gateway

Action: Add Data Gateway

To enable VMware-to-ZStack rollback, define both VMware and ZStack as targets:  

Add VMware Target

Action: Add VMware Target

Add ZStack Cloud Target

Action: Add ZStack Cloud Target

2. Select Hosts & Start Data Sync  

After configuring targets and gateways, select source hosts (e.g., a VMware Windows 2019 VM) to create replication tasks.  

Add Source Host

Action: Add Source Host

Create Sync Task

Action: Create Sync Task

data replication started

Status: Target replication objects created; data replication started

Adjust incremental sync frequency post-initial replication to minimize RPO for live migrations.  

3. Coordinate Service Cutover  

ZMigrate takes into consideration that most migration projects involve a migration testing phase, therefore providing two switchover options to address the following scenarios:

Immediate switchover: Typically implemented during the final stages of a project. After the project team confirms readiness for cutover, this action will terminate data synchronization from the source machine to the target machine, while simultaneously activating the target machine according to predefined configurations. The business unit can then proceed with subsequent application cutover operations.

Replica disk testing: Primarily used during mid-project testing phases. When the project team conducts migration testing, this option creates a virtual machine replica based on the current snapshot without terminating data synchronization between source and target machines. This replica is used for validation by the business unit.

Switchover method

Action: Switchover method

Confirm final production configuration of virtual machines

Action: Confirm final production configuration of virtual machines

Confirm successful data migration

Status: Confirm successful data migration

Conclusion

Migration is a critical undertaking as it directly impacts business continuity. It must be meticulously managed as a formal project – neither omitting essential steps nor making arbitrary decisions based on intuition. While tools can simplify migration processes, comprehensive project management remains indispensable. Especially in the current trend of domestic innovation and VMware replacement, migration incidents have become one of the primary factors affecting business continuity. We must approach every migration with utmost professionalism to maintain customer trust!

//