Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Linux
Sie können eine VM-Instanz in Compute Engine erstellen, indem Sie Images aus Ihrem Red Hat Cloud Access-Abo verwenden.
Bei dieser Option bezahlen Sie Red Hat für Lizenzabos und bezahlen Google Cloudnur für die anfallenden Infrastrukturkosten. Wenn Sie Betriebssystem-Images aus Ihrem Red Hat Cloud Access-Abo in Google Cloudverwenden, müssen Sie Support direkt von Red Hat anfordern. Melden Sie sich im Red Hat-Kundenportal an und erstellen Sie ein Support-Ticket, um Support anzufordern.
Wenn Sie eine VM erstellen, die ein RHEL-Betriebssystem-Image verwendet, können Sie über die Option zur Einmalanmeldung (SSO), die über die Google Cloud Console verfügbar ist, auf die Red Hat Knowledgebase zugreifen.
Hinweise
Richten Sie die Authentifizierung ein, falls Sie dies noch nicht getan haben.
Bei der Authentifizierung wird Ihre Identität für den Zugriff auf Google Cloud -Dienste und APIs überprüft. Zum Ausführen von Code oder Beispielen aus einer lokalen Entwicklungsumgebung können Sie sich so bei Compute Engine authentifizieren:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and
APIs, you don't need to set up authentication.
gcloud
Installieren Sie die Google Cloud CLI.
Initialisieren Sie die Google Cloud CLI nach der Installation mit dem folgenden Befehl:
Diese vordefinierte Rolle enthält die Berechtigungen, die zum Erstellen von VMs erforderlich sind. Erweitern Sie den Abschnitt Erforderliche Berechtigungen, um die erforderlichen Berechtigungen anzuzeigen:
Erforderliche Berechtigungen
Die folgenden Berechtigungen sind zum Erstellen von VMs erforderlich:
compute.instances.create für das Projekt
So erstellen Sie die VM mit einem benutzerdefinierten Image: compute.images.useReadOnly für das Image
Um die VM mit einem Snapshot zu erstellen: compute.snapshots.useReadOnly für den Snapshot
So verwenden Sie eine Instanzvorlage zum Erstellen der VM: compute.instanceTemplates.useReadOnly für die Instanzvorlage
So weisen Sie der VM ein Legacy-Netzwerk zu: compute.networks.use für das Projekt
Um eine statische IP-Adresse für die VM festzulegen: compute.addresses.use für das Projekt
So weisen Sie der VM eine externe IP-Adresse zu, wenn Sie ein Legacy-Netzwerk verwenden: compute.networks.useExternalIp für das Projekt
So geben Sie ein Subnetz für Ihre VM an: compute.subnetworks.use für das Projekt oder für das ausgewählte Subnetz
So weisen Sie der VM eine externe IP-Adresse zu, wenn Sie ein VPC-Netzwerk verwenden: compute.subnetworks.useExternalIp für das Projekt oder für das ausgewählte Subnetz
Um Metadaten der VM-Instanz für die VM festzulegen: compute.instances.setMetadata für das Projekt
Zum Festlegen von Tags für die VM: compute.instances.setTags auf der VM
So legen Sie Labels für die VM fest: compute.instances.setLabels auf der VM
So legen Sie ein Dienstkonto für die VM fest: compute.instances.setServiceAccount auf der VM
Um ein neues Laufwerk für die VM zu erstellen: compute.disks.create für das Projekt
So hängen Sie ein vorhandenes Laufwerk im Lese- oder Lese-/Schreibmodus an: compute.disks.use für das Laufwerk
So hängen Sie ein vorhandenes Laufwerk im Lesemodus an: compute.disks.useReadOnly für das Laufwerk
Fügen Sie der Google Groups-Gruppe alle Nutzer und Dienstkonten hinzu, die Sie diese BYOS-Images verwenden sollen. Weitere Informationen finden Sie unter Personen zur Gruppe hinzufügen.
Melden Sie sich im Red Hat-Kundenportal an und führen Sie die folgenden Schritte aus:
Wählen Sie im Navigationsmenü die Option Cloud Access aus.
Klicken Sie auf Enable a new provider.
Wählen Sie im Menü Select a Red Hat Certified Cloud and Service Provider die Option Google Compute Engine aus.
Geben Sie die Google Compute Engine ID ein. Dies ist die E-Mail-Adresse für die Google Groups-Gruppe, die Sie in Schritt 1 erstellt haben.
Wählen Sie die Produkte aus, die Sie aktivieren möchten.
Klicken Sie auf Aktivieren.
Es kann drei bis vier Stunden dauern, bis Ihr Google Cloud -Konto mit dem Red Hat-Kundenportal verknüpft ist.
RHEL-BYOS-Projekte
rhel-byos-cloud ist ein öffentliches Google Cloud Projekt, das eine Liste aller verfügbaren RHEL-BYOS-Images enthält. Sie können in diesem Projekt nach dem richtigen Imagenamen oder der richtigen Image-Familie suchen, die Sie dann zum Erstellen Ihrer eigenen VM-Instanz in Ihrem Projekt verwenden. Die Images werden von Google Cloudverwaltet, können aber nur verwendet werden, wenn Sie Ihr RHEL-BYOS-Abo ordnungsgemäß aktiviert haben.
Erstellen Sie die VM.
Nachdem Sie Ihrer Google Groups-Gruppe Zugriff auf Ihr RHEL-Abo gewährt haben, sind Ihre RHEL-BYOS-Images im öffentlichen Projekt Google Cloud rhel-byos-cloud in Compute Engine verfügbar. Sie erstellen Ihre eigene VM jedoch in Ihrem eigenen Projekt.
Console
Die Google Cloud -Konsole vereinfacht diesen Prozess, indem sie automatisch die verfügbaren RHEL BYOS-Images aus dem Projekt rhel-byos-cloud präsentiert.
Rufen Sie in der Google Cloud Console die Seite Instanz erstellen auf.
Ändern Sie optional die Zone für diese VM. Wenn Sie Beliebig auswählen, wählt Google automatisch eine Zone für Sie aus, basierend auf Maschinentyp und Verfügbarkeit.
Wählen Sie eine Maschinenkonfiguration für Ihre VM aus.
Klicken Sie im Abschnitt Bootlaufwerk auf Ändern.
Führen Sie auf dem Tab Öffentliche Images die folgenden Schritte aus:
Wählen Sie im Drop-down-Menü Betriebssystem eine der folgenden Optionen aus:
Red Hat Enterprise Linux
Red Hat Enterprise Linux für SAP
Wählen Sie im Drop-down-Menü Versionstyp das Image aus, das Sie verwenden möchten.
Wählen Sie im Abschnitt Lizenztyp die Option Eigenes Abo oder Lizenz verwenden (BYOS/BYOL) aus.
Geben Sie den Typ des Bootlaufwerks an.
Geben Sie die Größe des Bootlaufwerks an.
Optional: Klicken Sie für erweiterte Konfigurationsoptionen auf Erweiterte Konfiguration anzeigen.
Klicken Sie auf Auswählen, um die Bootlaufwerksoptionen zu bestätigen.
Nehmen Sie bei Bedarf weitere VM-Anpassungen vor.
Klicken Sie zum Erstellen und Starten der VM auf Erstellen.
gcloud
Das Erstellen einer VM mit der Google Cloud CLI ist ein zweistufiger Prozess, um sicherzustellen, dass Sie das richtige Image aus dem Projekt rhel-byos-cloud verwenden.
Suchen Sie das RHEL-BYOS-Image, das Sie verwenden möchten. Führen Sie den folgenden Befehl aus, um die verfügbaren Images im Projekt rhel-byos-cloud aufzulisten:
gcloud compute images list \
--project=rhel-byos-cloud \
--filter="name ~ rhel-byos"
Notieren Sie sich aus der Befehlsausgabe die name des Bildes, das Sie verwenden möchten. Der Name könnte beispielsweise rhel-9-byos oder rhel-9-2-sap-byos sein.
Erstellen Sie die VM mit einem BYOS-Image in Ihrem eigenen Projekt, indem Sie mit dem Befehl gcloud compute instances create und Ihren PROJECT_ID und IMAGE_NAME auf das Image verweisen, das Sie im vorherigen Schritt gefunden haben.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eYou can use images from your Red Hat Cloud Access subscription to create virtual machine (VM) instances on Google Cloud's Compute Engine, paying Red Hat for the license and Google Cloud for infrastructure.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize a Red Hat Cloud Access subscription, you must first grant a Google Group access to your RHEL subscription via the Red Hat Customer Portal, then create a VM using either the Google Cloud console or the Google Cloud CLI.\u003c/p\u003e\n"],["\u003cp\u003eCreating a VM with a Red Hat Enterprise Linux (RHEL) image allows you to access the Red Hat Knowledgebase through a single-sign-on (SSO) option in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eTo create VMs, you'll need specific permissions, including the \u003ccode\u003eCompute Instance Admin (v1)\u003c/code\u003e role, which can be granted by your administrator.\u003c/p\u003e\n"],["\u003cp\u003eThe RHEL BYOS images are available in the \u003ccode\u003erhel-byos-cloud\u003c/code\u003e project on Compute Engine once access has been given in the Red Hat Customer Portal, and this process might take a few hours.\u003c/p\u003e\n"]]],[],null,["# Create a VM using a RHEL BYOS image\n\nLinux\n\n*** ** * ** ***\n\nYou can create a virtual machine (VM) instance on Compute Engine by using\nimages from your [Red Hat Cloud Access subscription](https://www.redhat.com/en/technologies/cloud-computing/cloud-access).\n\nWith this option, you pay Red Hat for license subscriptions and pay Google Cloud\nonly for infrastructure costs you incur. When you use OS images from your Red Hat\nCloud Access subscription on Google Cloud, you must request support\ndirectly from Red Hat. To request support, log into your Red Hat Customer Portal\nand open a support ticket.\n\nWhen you create a VM that uses a RHEL OS image,\nyou can access the Red Hat Knowledgebase by using a single-sign-on (SSO) option\n[available through the Google Cloud console](/compute/docs/images/premium/access-rhel-knowledgebase).\n\nBefore you begin\n----------------\n\n- If you haven't already, set up [authentication](/compute/docs/authentication). Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:\n\n Select the tab for how you plan to use the samples on this page: \n\n ### Console\n\n\n When you use the Google Cloud console to access Google Cloud services and\n APIs, you don't need to set up authentication.\n\n ### gcloud\n\n 1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n | **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.\n 2. [Set a default region and zone](/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client).\n\n### Required roles\n\n\nTo get the permissions that\nyou need to create VMs,\n\nask your administrator to grant you the\n\n\n[Compute Instance Admin (v1)](/iam/docs/roles-permissions/compute#compute.instanceAdmin.v1) (`roles/compute.instanceAdmin.v1`)\nIAM role on the project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nThis predefined role contains\n\nthe permissions required to create VMs. To see the exact permissions that are\nrequired, expand the **Required permissions** section:\n\n\n#### Required permissions\n\nThe following permissions are required to create VMs:\n\n- ` compute.instances.create` on the project\n- To use a custom image to create the VM: ` compute.images.useReadOnly` on the image\n- To use a snapshot to create the VM: ` compute.snapshots.useReadOnly` on the snapshot\n- To use an instance template to create the VM: ` compute.instanceTemplates.useReadOnly` on the instance template\n- To assign a [legacy network](/vpc/docs/legacy) to the VM: ` compute.networks.use` on the project\n- To specify a static IP address for the VM: ` compute.addresses.use` on the project\n- To assign an external IP address to the VM when using a legacy network: ` compute.networks.useExternalIp` on the project\n- To specify a subnet for your VM: ` compute.subnetworks.use` on the project or on the chosen subnet\n- To assign an external IP address to the VM when using a VPC network: ` compute.subnetworks.useExternalIp` on the project or on the chosen subnet\n- To set VM instance metadata for the VM: ` compute.instances.setMetadata` on the project\n- To set tags for the VM: ` compute.instances.setTags` on the VM\n- To set labels for the VM: ` compute.instances.setLabels` on the VM\n- To set a service account for the VM to use: ` compute.instances.setServiceAccount` on the VM\n- To create a new disk for the VM: ` compute.disks.create` on the project\n- To attach an existing disk in read-only or read-write mode: ` compute.disks.use` on the disk\n- To attach an existing disk in read-only mode: ` compute.disks.useReadOnly` on the disk\n\n\nYou might also be able to get\nthese permissions\nwith [custom roles](/iam/docs/creating-custom-roles) or\nother [predefined roles](/iam/docs/roles-overview#predefined).\n\nCreate a VM with a RHEL BYOS image\n----------------------------------\n\nIn summary, to use Red Hat Cloud Access subscription on Google Cloud, you need\nto complete the following steps:\n\n1. [Give Google Cloud access to the images](#enable-access) in your Red Hat Cloud Access subscription.\n2. [Use Google Cloud console or Google Cloud CLI](#create-vm) to create the VM.\n\n### Give your Google Group access to your RHEL subscription\n\nTo provide your Google Group with access to RHEL BYOS images, complete the\nfollowing steps:\n\n1. Select an existing or create a [Google Group](https://support.google.com/groups/answer/2464926).\n2. Add all users and service accounts that you want to use these BYOS images, to the Google Group. See [Add people to your group](https://support.google.com/groups/answer/2465464?ref_topic=2458761).\n3. Log into the [Red Hat Customer Portal](https://access.redhat.com/) and complete the following steps:\n 1. On the navigation menu, select **Cloud Access**.\n 2. Click **Enable a new provider**.\n 3. In the **Select a Red Hat Certified Cloud and Service Provider** menu, select **Google Compute Engine**.\n 4. Enter your **Google Compute Engine ID** . This is the [email address](https://support.google.com/groups/answer/2464926#zippy=%2Csettings-reference) for the Google Group that you created in step one.\n 5. Select the products that you want to enable.\n 6. Click **Enable**.\n\nIt might take 3-4 hours for your Google Cloud account to be\nlinked to the Red Hat Customer Portal.\n\n### Understanding RHEL BYOS projects\n\n`rhel-byos-cloud` is a public Google Cloud project that contains a list of all\navailable RHEL BYOS images. You can reference this project to find the correct\nimage name or family that you will then use to create your own VM instance in\nyour project. The images are managed by Google Cloud, but they can\nonly be used if you have properly enabled your RHEL BYOS subscription.\n\n### Create the VM\n\nAfter you give your Google Group access to your RHEL subscription, your\nRHEL BYOS images are available in the public Google Cloud `rhel-byos-cloud` project\non Compute Engine, but you will create your own VM in your own project. \n\n### Console\n\nThe Google Cloud console simplifies this process by automatically presenting the\navailable RHEL BYOS images from the `rhel-byos-cloud` project.\n\n1. In the Google Cloud console, go to the **Create an instance** page.\n\n [Go to Create an instance](https://console.cloud.google.com/compute/instancesAdd)\n2. Specify a **Name** for your VM. For more information, see [Resource naming convention](/compute/docs/naming-resources#resource-name-format).\n\n3. Optional: Change the **Zone** for this VM. If you select **Any**,\n Google automatically chooses a zone for you based on machine type\n and availability.\n\n4. Select a **Machine configuration** for your VM.\n\n5. In the **Boot disk** section, click **Change**.\n\n6. In the **Public images** tab, complete the following steps:\n\n 1. In the **Operating system** drop-down, select one of the following:\n - **Red Hat Enterprise Linux**\n - **Red Hat Enterprise Linux for SAP**\n 2. In the **Version Type** drop-down, select the image that you want to use.\n 3. In the **License type** section, select **Bring your own subscription or license (BYOS/BYOL)**.\n 4. Specify boot disk type.\n 5. Specify boot disk size.\n 6. Optional: For advanced configuration options, click **Show advanced configuration**.\n 7. To confirm your boot disk options, click **Select**.\n7. Make additional VM customizations, as needed.\n\n8. To create and start the VM, click **Create**.\n\n### gcloud\n\nCreating a VM with the Google Cloud CLI is a two-step process to make sure\nyou use the correct image from the `rhel-byos-cloud` project.\n\n1. To find the RHEL BYOS image you want to use. Run the following command to list the available images in the `rhel-byos-cloud` project:\n\n ```\n gcloud compute images list \\\n --project=rhel-byos-cloud \\\n --filter=\"name ~ rhel-byos\"\n ```\n\n From the command output, note the `name` of the image you want to use. For example, the name might be `rhel-9-byos` or `rhel-9-2-sap-byos`.\n2. Create the VM with a BYOS image in your own project by referencing the image you found in the previous step by running the [`gcloud compute instances create` command](/sdk/gcloud/reference/compute/instances/create)\n with your \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e and \u003cvar translate=\"no\"\u003eIMAGE_NAME\u003c/var\u003e.\n\n ```\n gcloud compute instances create VM_NAME \\\n --project=PROJECT_ID \\\n --image=IMAGE_NAME\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eVM_NAME\u003c/var\u003e: [name](/compute/docs/naming-resources#resource-name-format) of the new VM\n - \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID where you want to create the VM\n - \u003cvar translate=\"no\"\u003eIMAGE_NAME\u003c/var\u003e: the specific image name that you want to use\n\nWhat's next\n-----------\n\n- [Connect to Linux VMs](/compute/docs/instances/connecting-to-instance).\n- [Connect to Windows VMs](/compute/docs/instances/connecting-to-windows).\n- [Access Red Hat Knowlegebase](/compute/docs/images/premium/access-rhel-knowledgebase)."]]