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
- If you want to use the command-line examples in this guide, do the following:
- Install or update to the latest version of the Google Cloud CLI.
- Set a default region and zone.
- If you want to use the API examples in this guide, set up API access.
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:
- Give Google Cloud access to the images in your Red Hat Cloud Access subscription.
- 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:
- Select an existing or create a Google Group.
- Add all users and service accounts that you want to use these BYOS images, to the Google Group. See Add people to your group.
- Log into the Red Hat Customer Portal
and complete the following steps:
- On the navigation menu, select Cloud Access.
- Click Enable a new provider.
- In the Select a Red Hat Certified Cloud and Service Provider menu, select Google Compute Engine.
- Enter your Google Compute Engine ID. This is the email address for the Google Group that you created in step one.
- Select the products that you want to enable.
- 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
In the Google Cloud console, go to the Create an instance page.
Specify a Name for your VM. For more information, see Resource naming convention.
Optional: Change the Zone for this VM. Compute Engine randomizes the list of zones within each region to encourage use across multiple zones.
Select a Machine configuration for your VM.
In the Boot disk section, click Change Disk.
In the Public images tab, complete the following steps:
- In the Operating system dropdown, select Red Hat Enterprise Linux.
- In the Version Type dropdown, select the image that you want to use.
- In the License type section, select Use Bring your own subscription or license (BYOS/BYOL).
- Specify boot disk type.
- Specify boot disk size.
- Optional: For advanced configuration options, click Show advanced configuration.
- To confirm your boot disk options, click Select.
Make additional VM customizations, as needed.
To create and start the VM, click Create.
gcloud
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
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 VMIMAGE
: 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:
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 thegcloud compute images import
command.This step adds the image to the available custom images in your project.
Create a VM by using your custom image.
After you create the VM, attach your RHEL for SAP subscription to the VM.