Skip to content

This repository aims at automating VM migration between GCP projects.

License

Notifications You must be signed in to change notification settings

rastogiji/gcp-vm-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Migration of VM's across GCP projects

Migrate fleet of VM's across GCP projects. The script automates migrating VM's identified by a specific regular expression from one project to another project.

For VMs that are hosting stateless applications, this process involves near-zero data loss with minimal downtime.

For stateful applications, downtime is large since you need to stop the VMs beforehand to avoid any data loss in the destination system.

Solution Flow

High Level overview of how a VM is migrated:

  • Create snapshot of the disk.
  • Create an image from the snapshot in the source project.
  • Create a VM in the destination project from VM in the source project.

Usage

./master.sh <source-project-id> <destinaton-project-id>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

This repository aims at automating VM migration between GCP projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages