Chapter 4. Installing RHEL AI on Google Cloud


Before you can deploy Red Hat Enterprise Linux AI on Google Cloud, you must first convert the RHEL AI image into an Google Cloud image.

To create a bootable image in Google Cloud you must configure your Google Cloud account, create a Google Cloud Storage bucket, and convert the RHEL AI RAW image into a Google Cloud image.

Prerequisites

  • You have installed the gcloud CLI. See Install the gcloud CLI.
  • You have a host with RHEL version 9.2+ installed.
  • Your host has an additional 100GB of disk space available.

Procedure

  1. Log in to gcloud. Run the following command:

    $ gcloud auth login
  2. Configure gcloud and create your Google Cloud storage container.

    1. Configure the gcloud CLI to use your project.

      $ GCLOUD_PROJECT=rhelai-gcloud-project
      $ gcloud config set project $GCLOUD_PROJECT
    2. Create an environment variable defining the region where you want to operate. For example:

      $ gcloud_region=us-central1
    3. Create a storage container. Run the following commands:

      $ GCLOUD_BUCKET=<YOUR_BUCKET_NAME>
      $ gsutil mb -l $gcloud_region gs://$GCLOUD_BUCKET
  3. Download the tar.gz image from the Download Red Hat Enterprise Linux AI page.
  4. Unzip the tar.gz file with the following command:

    $ gunzip <DOWNLOADED_TAR_GZ_FILE>
  5. Configure the IMAGE_NAME variable:

    $ IMAGE_NAME=rhel-ai-gcloud
  6. Upload the tar.gz file to the Google Cloud Storage Container by running the following command:

    $ gsutil cp <DOWNLOADED_TAR_GZ_FILE> "gs://${GCLOUD_BUCKET}/$IMAGE_NAME.tar.gz"
  7. Create a Google Cloud image from the tar.gz file:

    $ gcloud compute images create \
    "$IMAGE_NAME" \
    --source-uri="gs://${GCLOUD_BUCKET}/$IMAGE_NAME.tar.gz" \
    --family "rhel-ai" \
    --guest-os-features=GVNIC

You can launch an Google Cloud instance from an uploaded Red Hat Enterprise Linux AI image by using the Google Cloud web console or the CLI. The following procedure describes how to use the gcloud CLI to launch the instance by using the custom image.

Prerequisites

  • You have created the RHEL AI image and made it available for installation in Google Cloud.
  • You have installed the gcloud CLI. See Install the gcloud CLI.

Procedure

  1. Log in to your Google Cloud account by running the following command:

    $ gcloud auth login
  2. Create several gcloud configuration variables for the deployment.
  3. Select the instance profile that you want to use for the deployment. List all the profiles in the required region by running the following command:

    $ gcloud compute machine-types list --zones=<ZONE>

    Make a note of the preferred machine type.

  4. Create Google Cloud instance variables, for example:

    NAME=rhelai-instance
    ZONE=us-central1-a
    MACHINE_TYPE=a3-highgpu-8g
    ACCELERATOR="type=nvidia-h100-80gb,count=8"
    IMAGE=custom-rhelai-image
    DISK_SIZE=1024
    SUBNET=default
  5. Configure the zone.

    $ gcloud config set compute/zone $ZONE
  6. Launch the Google Cloud instance:

    $ gcloud compute instances create \
        ${name} \
        --machine-type ${MACHINE_TYPE} \
        --image $IMAGE \
        --zone $ZONE \
        --subnet $SUBNET \
        --boot-disk-size ${DISK_SIZE} \
        --boot-disk-device-name ${NAME} \
        --accelerator=$ACCELERATOR
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top