Create a VM using a RHEL BYOS image


You can create a virtual machine (VM) instance on Compute Engine by using images from your Red Hat Cloud Access subscription.

With this option, you pay Red Hat for license subscriptions and pay Google Cloud only for infrastructure costs you incur. When you use OS images from your Red Hat Cloud Access subscription on Google Cloud, you must request support directly from Red Hat. To request support, log into your Red Hat Customer Portal and open a support ticket.

This document covers how to complete the following procedures:

  • Create a VM that uses RHEL BYOS. To use RHEL BYOS, you can grant Google Cloud access to the images and then use the Google Cloud console or Google Cloud CLI to create the VM.

  • Create a VM that uses RHEL BYOS for SAP. To use RHEL for SAP BYOS, you must import a RHEL BYOS image, create a VM with this image, and then attach your subscription to the VM.

Before you begin

Create a VM with a RHEL BYOS image

In summary, to use Red Hat Cloud Access subscription on Google Cloud, you need to complete the following steps:

  1. Give Google Cloud access to the images in your Red Hat Cloud Access subscription.
  2. Use Google Cloud console or Google Cloud CLI to create the VM.

Give your Google Group access to your RHEL subscription

To provide your Google Group with access to RHEL BYOS images, complete the following steps:

  1. Select an existing or create a Google Group.
  2. Add all users and service accounts that you want to use these BYOS images, to the Google Group. See Add people to your group.
  3. Log into the Red Hat Customer Portal and complete the following steps:
    1. On the navigation menu, select Cloud Access.
    2. Click Enable a new provider.
    3. In the Select a Red Hat Certified Cloud and Service Provider menu, select Google Compute Engine.
    4. Enter your Google Compute Engine ID. This is the email address for the Google Group that you created in step one.
    5. Select the products that you want to enable.
    6. Click Enable.

It might take 3-4 hours for your Google Cloud account to be linked to the Red Hat Customer Portal.

Create the VM

After you give your Google Group access to your RHEL subscription, your RHEL BYOS images are then available in the rhel-byos-cloud project on Compute Engine. You can then create a VM using your RHEL BYOS image.

Console

  1. In the Google Cloud console, go to the Create an instance page.

    Go to Create an instance

  2. Specify a Name for your VM. For more information, see Resource naming convention.

  3. Optional: Change the Zone for this VM. Compute Engine randomizes the list of zones within each region to encourage use across multiple zones.

  4. Select a Machine configuration for your VM.

  5. In the Boot disk section, click Change Disk.

  6. In the Public images tab, complete the following steps:

    1. In the Operating system dropdown, select Red Hat Enterprise Linux.
    2. In the Version Type dropdown, select the image that you want to use.
    3. In the License type section, select Use Bring your own subscription or license (BYOS/BYOL).
    4. Specify boot disk type.
    5. Specify boot disk size.
    6. Optional: For advanced configuration options, click Show advanced configuration.
    7. To confirm your boot disk options, click Select.
  7. Make additional VM customizations, as needed.

  8. To create and start the VM, click Create.

gcloud

  1. Review a list of the RHEL BYOS images that are available. To view a list of RHEL BYOS images, run the following command.

    gcloud compute images list \
        --project=rhel-byos-cloud \
        --no-standard-images
    
  2. Run the gcloud compute instances create command to create a VM with a BYOS image.

     gcloud compute instances create VM_NAME \
        --image=IMAGE \
        --image-project=rhel-byos-cloud
    

    Replace the following:

    • VM_NAME: name of the new VM
    • IMAGE: the BYOS image that you want to use. For example, rhel-7-byos-v20220519.

Create a VM that uses RHEL for SAP BYOS

Currently, RHEL for SAP BYOS images are not available in the rhel-byos-cloud project.

To use RHEL for SAP BYOS on Compute Engine, complete the following steps:

  1. Import a RHEL BYOS image. For example, rhel-8-byol. See Import virtual disks.

    For a list of RHEL versions that support BYOS/BYOL on Compute Engine, review the --os flag of the gcloud compute images import command.

    This step adds the image to the available custom images in your project.

  2. Create a VM by using your custom image.

  3. After you create the VM, attach your RHEL for SAP subscription to the VM.

What's next