5.2. 在 Google Cloud Platform 上准备虚拟机


如果要在 Google Cloud Platform (GCP)上的虚拟机上部署转换工具包,您可以构建包含 Red Hat Enterprise Linux 8 和存储库的镜像,并从 Red Hat Hybrid Cloud Console 启动镜像。

先决条件

  • 您已创建了激活码。如需更多信息,请参阅 第 4 章 创建激活码
  • 确保云环境的防火墙配置允许以下端口的入站和出站流量:

    • 67/udp
    • 68/udp
    • 80/tcp
    • 443/tcp
    • 8000/TCP
    • 8140/tcp
    • 8443/tcp
    • 9090/tcp

流程

  1. 将您的 GCP 项目连接到 Red Hat Hybrid Cloud Console。如需更多信息,请参阅将 GCP 项目连接到 Red Hat Hybrid Cloud Console
  2. 使用转换工具包构建 RHEL 镜像。

    1. 进入 Red Hat Hybrid Cloud Console 中的 Services > Inventories > Images
    2. Create image
    3. Image output 屏幕中,从 Release 菜单中选择 Red Hat Enterprise Linux (RHEL) 8
    4. 确保已选中 x86_64 架构。
    5. Select target environments 下,选择 Google Cloud Platform
    6. 点击 Next
    7. Select image shared 下,确保已选中 Share image with Google account
    8. 选择您的帐户类型并输入您的 GCP 凭证。
    9. 点击 Next
    10. Register 屏幕上,在 Registration 方法 下,确保选择了 Automatically register…​
    11. 选择您的激活码。
    12. 点击 Next
    13. 文件系统配置 屏幕上,确保选择了 Use automatic partitioning
    14. 点击 Next
    15. Additional Red Hat packages 屏幕中,点 Next
    16. Custom 存储库 屏幕上,单击 Next
    17. Details 屏幕中,输入镜像的名称,并选择性地输入描述。
    18. 点击 Next
    19. 查看镜像详情。
    20. Create image
  3. 在 GCP 上启动镜像。红帽建议您选择 e2-standard-8 作为机器类型。如需更多信息,请参阅在 Google Cloud Platform 上启动自定义 RHEL 镜像
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat