如何从 OpenStack 迁移至 GCP?

如何从 OpenStack 迁移至 GCP?

我之前有一个基于 OpenStack 的云环境,其中有虚拟服务器。我已迁移到 GCP,虽然我已将所有内容重构为云原生(尤其是 k8s),但我想将磁盘映像移动到 GCP 以进行存档,这样我就可以通过在 GCE 中启动实例来访问它们。

我已经制作了服务器的快照并使用 Glance CLI 工具下载了它,但我很难让它在 GCP 中工作(如果可能的话?)。我尝试在 GUI 和 CLI 上将其作为映像导入。如果我表示操作系统(Centos 7),导入过程似乎确实会在原始磁盘映像中找到它,但导入过程以

[import-image]: 2020-09-23T08:22:48.732Z step "translate-disk" run error: step "wait-for-translator" run error: WaitForInstancesSignal FailureMatch found for "inst-translator-import-image-translate-disk-1zq15": "TranslateFailed: error: Verify that you have specified the correct operating system in the `--os` flag. If you are bringing your own license (BYOL), also verify that your subscription is eligible to be run on GCP."

如果我没有指定操作系统,导入会成功,但实例无法从映像启动。

所以我的问题是:我试图做的事情真的可行吗?如果可行,怎么做?我做错了什么?有没有更好的方法?

相关内容