Derek Neely

...notes for thyself, but useful for all...

Transferring Google Compute Engine (GCE) instance to another project

Jan 17, 2017 by derek

On the Google Cloud Platform (GCP) there's no straight forward way to move a server from one project to another. We've been cleaning up and organizing some of our servers into their relative projects as they grow. This includes projects we own as well as moving some of the systems over to projects owned by the relative clients. While moving a server from one project to another isn't very straight forward its really not that hard to do. Only caveat is that you'll lose the IP of the current server. But, with this solution you're able to keep the current server up and running, stand up an identical machine in the new project, then all you need to do is cutover the DNS. Ready?

  1. Create a snapshot of the server you want to move
  2. Create a new disk from this snapshot
  3. Create an image from this disk (images can only be created from a disk that is not attached to an instance)
  4. Jump on over to the new project and create an instance from the image you created.

Done and done!

Google Compute Engine (GCE), Google Cloud Platform, System Administration, Cloud


Tweet Tweet Tweet

© 2016 Derek Neely