# ibm-cloud/vpc-migration-tools architecture

> Architecture diagram of the GitHub repository ibm-cloud/vpc-migration-tools, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ibm-cloud/vpc-migration-tools
- Repository: https://github.com/ibm-cloud/vpc-migration-tools

## Overview

VPC Migration Tools is a collection of independent utilities for moving workloads and data into IBM Cloud VPC, rather than one integrated runtime. The principal documented workflow is server migration automation: prechecks, image conversion, custom-image creation, and target provisioning. Other branches cover data and database transfer and RackWare discovery. The MySQL path is clearer in the sampled source: a driver runs source backup and target restore tasks, using Cloud Object Storage as the handoff. Most other script internals were not sampled, so their links reflect README statements only.

Main entry points: [`server-migration/migration.sh`](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/migration.sh) (Migration automation), [`db-migration/mysql/db_migration.py`](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/db_migration.py) (MySQL migration driver), [`db-migration/mysql/infra/source_server_function.py`](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/infra/source_server_function.py) (Source backup), [`db-migration/mysql/infra/target_server_function.py`](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/infra/target_server_function.py) (Target restore)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_validation["Prechecks"]
  node_os_linux["Linux precheck<br/>[linux_precheck.sh]"]
  node_os_windows["Windows precheck"]
end

subgraph group_migration["Server Migration"]
  node_server_automation["Migration automation<br/>[migration.sh]"]
  node_server_precheck["Server prechecks<br/>[linux_precheck.sh]"]
  node_server_windows["Windows prechecks"]
  node_image_conversion["Image conversion<br/>[migration.sh]"]
  node_server_appliance["Appliance support<br/>[appliance.sh]"]
  node_target_cloud["IBM Cloud VPC"]
end

subgraph group_data["Data Transfer"]
  node_rsync["Rsync transfer<br/>[auto_rsync.sh]"]
end

subgraph group_database["Database Migration"]
  node_mysql_driver["MySQL migration driver<br/>[db_migration.py]"]
  node_mysql_source["Source backup"]
  node_cos[("Cloud Object Storage")]
  node_mysql_target["Target restore"]
  node_mssql_post["MSSQL post-migration<br/>[rejoin_domain.ps1]"]
end

subgraph group_discovery["VM Discovery"]
  node_vmware_discovery["VMware discovery"]
  node_hyperv_discovery["Hyper-V discovery"]
  node_rackware["RackWare RMM"]
end

node_operator(("Migration operator"))

node_operator -->|"runs check"| node_os_linux
node_operator -->|"runs check"| node_os_windows
node_operator -->|"starts migration"| node_server_automation
node_server_automation -->|"automates prechecks"| node_server_precheck
node_server_automation -->|"automates conversion"| node_image_conversion
node_server_automation -->|"provisions target"| node_target_cloud
node_operator -->|"runs transfer"| node_rsync
node_operator -->|"starts migration"| node_mysql_driver
node_mysql_driver -->|"executes tasks"| node_mysql_source
node_mysql_driver -->|"executes tasks"| node_mysql_target
node_mysql_source -->|"writes dump"| node_cos
node_cos -->|"provides dump"| node_mysql_target
node_mysql_source -->|"transfers backup"| node_mysql_target
node_operator -->|"runs post-script"| node_mssql_post
node_operator -->|"starts discovery"| node_vmware_discovery
node_vmware_discovery -->|"creates wave"| node_rackware
node_operator -->|"starts discovery"| node_hyperv_discovery
node_hyperv_discovery -->|"creates wave"| node_rackware

click node_os_linux "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/os-precheck-scripts/linux_precheck.sh"
click node_os_windows "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/os-precheck-scripts/windows_precheck.ps1"
click node_server_automation "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/migration.sh"
click node_server_precheck "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/linux_precheck.sh"
click node_server_windows "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/windows_precheck.ps1"
click node_image_conversion "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/image-conversion/migration.sh"
click node_server_appliance "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/appliance.sh"
click node_rsync "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/data-migration/auto_rsync.sh"
click node_mysql_driver "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/db_migration.py"
click node_mysql_source "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/infra/source_server_function.py"
click node_mysql_target "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/infra/target_server_function.py"
click node_mssql_post "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mssql/post-migration/rejoin_domain.ps1"
click node_vmware_discovery "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/v2v-discovery-tool-rmm/VMware/discoveryTool"
click node_hyperv_discovery "https://github.com/ibm-cloud/vpc-migration-tools/blob/main/v2v-discovery-tool-rmm/HyperV/discoveryTool"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_os_linux,node_os_windows toneBlue
class node_server_automation,node_server_precheck,node_server_windows,node_image_conversion,node_server_appliance,node_target_cloud toneAmber
class node_rsync toneMint
class node_mysql_driver,node_mysql_source,node_cos,node_mysql_target,node_mssql_post toneRose
class node_vmware_discovery,node_hyperv_discovery,node_rackware,node_operator toneIndigo
```

## Components

### Prechecks

- [Linux precheck](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/os-precheck-scripts/linux_precheck.sh): `os-precheck-scripts/linux_precheck.sh`
- [Windows precheck](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/os-precheck-scripts/windows_precheck.ps1): `os-precheck-scripts/windows_precheck.ps1`

### Server Migration

- [Migration automation](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/migration.sh): `server-migration/migration.sh`
- [Server prechecks](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/linux_precheck.sh): `server-migration/linux_precheck.sh`
- [Windows prechecks](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/windows_precheck.ps1): `server-migration/windows_precheck.ps1`
- [Image conversion](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/image-conversion/migration.sh): `image-conversion/migration.sh`
- [Appliance support](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/server-migration/appliance.sh): `server-migration/appliance.sh`
- **IBM Cloud VPC**

### Data Transfer

- [Rsync transfer](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/data-migration/auto_rsync.sh): `data-migration/auto_rsync.sh`

### Database Migration

- [MySQL migration driver](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/db_migration.py): `db-migration/mysql/db_migration.py`
- [Source backup](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/infra/source_server_function.py): `db-migration/mysql/infra/source_server_function.py`
- **Cloud Object Storage**
- [Target restore](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mysql/infra/target_server_function.py): `db-migration/mysql/infra/target_server_function.py`
- [MSSQL post-migration](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/db-migration/mssql/post-migration/rejoin_domain.ps1): `db-migration/mssql/post-migration/rejoin_domain.ps1`

### VM Discovery

- [VMware discovery](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/v2v-discovery-tool-rmm/VMware/discoveryTool): `v2v-discovery-tool-rmm/VMware/discoveryTool`
- [Hyper-V discovery](https://github.com/ibm-cloud/vpc-migration-tools/blob/main/v2v-discovery-tool-rmm/HyperV/discoveryTool): `v2v-discovery-tool-rmm/HyperV/discoveryTool`
- **RackWare RMM**

### Other components

- **Migration operator**

## Connections

- Migration operator → Linux precheck: runs check (evidence: `README.md`)
- Migration operator → Windows precheck: runs check (evidence: `README.md`)
- Migration operator → Migration automation: starts migration (evidence: `README.md`)
- Migration automation → Server prechecks: automates prechecks (evidence: `README.md`)
- Migration automation → Image conversion: automates conversion (evidence: `README.md`)
- Migration automation → IBM Cloud VPC: provisions target (evidence: `README.md`)
- Migration operator → Rsync transfer: runs transfer (evidence: `README.md`)
- Migration operator → MySQL migration driver: starts migration (evidence: `README.md`)
- MySQL migration driver → Source backup: executes tasks (evidence: `db-migration/mysql/db_migration.py`)
- MySQL migration driver → Target restore: executes tasks (evidence: `db-migration/mysql/db_migration.py`)
- Source backup → Cloud Object Storage: writes dump (evidence: `db-migration/mysql/infra/source_server_function.py`)
- Cloud Object Storage → Target restore: provides dump (evidence: `README.md`)
- Source backup → Target restore: transfers backup (evidence: `README.md`)
- Migration operator → MSSQL post-migration: runs post-script (evidence: `README.md`)
- Migration operator → VMware discovery: starts discovery (evidence: `README.md`)
- VMware discovery → RackWare RMM: creates wave (evidence: `README.md`)
- Migration operator → Hyper-V discovery: starts discovery (evidence: `README.md`)
- Hyper-V discovery → RackWare RMM: creates wave (evidence: `README.md`)
