Chapter 6. Launching customized RHEL images to the cloud platforms with Insights image builder

6.1. Launching a customized RHEL image on AWS

You can launch a customized RHEL image on the AWS cloud environment.

Prerequisites

Procedure

  1. Access Hybrid Cloud Console.
  2. Click Red Hat Insights > RHEL > Inventory > Images.
  3. Find an image you want to launch in the public cloud environment and click Launch in the Instance column. The Launch wizard opens.
  4. On the Account and customization page, complete the following steps:

    1. From the Select account drop-down menu, select the account you want to use.
    2. From the Select region drop-down menu, select the region to run the instance.
    3. Optionally: From the Select template drop-down menu, select the template you want to use.

      If you do not specify the template, you launch the image under the default security group. Ensure that the default security group allows SSH traffic.

    4. From the Select instance type drop-down menu, select the instance type configuration.
    5. In the Count field, select the number of images you want to launch. Click Next.

      The wizard notifies you if you try to launch too many images. Make sure you have enough resources in your AWS account.

      Note

      You must have the default Virtual Private Cloud (VPC) and Security Group on your AWS account. If you do not have them, contact the AWS support to re-create them.

  5. On the SSH key authentication page, select one of the options:

    1. Select existing SSH public key. From the Select public key drop-down menu, add an existing SSH public key.
    2. Add and save a new SSH public key. Enter a name for your new SSH public key and drag or upload a new SSH public key file. Click Next.
  6. On the Review page, review the details about the image launch process and click Launch.

Verification

  1. The Launch wizard shows the green checkmark with a message System launched successfully.
  2. To verify the instance is running, copy the ssh command displayed on the screen to your terminal and connect to the instance.

To stop the running instance, see the AWS console documentation.

6.2. Launching a customized RHEL image on Microsoft Azure

Prerequisites

Procedure

  1. Access Hybrid Cloud Console.
  2. Click Red Hat Insights > RHEL > Inventory > Images.
  3. Find an image you want to launch in the public cloud environment and click Launch in the Instance column. The Launch wizard opens.
  4. On the Account and customization page, complete the following steps:

    1. From the Select account drop-down menu, select the account you want to use.
    2. From the Azure resource group drop-down menu, select the resource group in which you want to run your instance.

      This creates the resources in the same region that this resource group is located. You can leave this field empty to run the instance in the same resource group as the image.

    3. From the Select instance size drop-down menu, select the instance type configuration.
    4. In the Count field, select the number of images you want to launch. Click Next.

      The wizard notifies you if you try to launch too many images. Make sure you have enough quotas in your Microsoft Azure subscription when you are launching a large set of images.

  5. On the SSH key authentication page, choose to use an existing SSH key or add a new SSH key:

    To select an existing SSH public key, follow the steps
    1. From the Select public key drop-down menu, choose an existing SSH public key.
    2. Click Next.
    To Add and save a new SSH public key, follow the steps
    1. In the Name field, enter a name for your new SSH public key.
    2. In the SSH public key, drag or upload a new SSH public key file.
    3. Click Next.

      Note

      Microsoft Azure does not support the ed25519 SSH keys.

  6. On the Review page, review the details about the image launch process and click Launch.

The launching process takes a few minutes to start an instance on the Microsoft Azure cloud platform.

Verification

  1. The Launch wizard shows the green checkmark with a message System launched successfully.
  2. To verify the instance is running, copy the ssh command displayed on the screen to your terminal and connect to the instance.

6.3. Launching a customized RHEL image on the Google Cloud Platform

Prerequisites

  • You have a RHEL subscription.
  • You have a Google Cloud Platform (GCP) project created.
  • You successfully built a customized RHEL image.
  • The customized RHEL image you built is shared with the same GCP project.
  • You have the "Launch on Google User" role assigned. See how to assign a role to a user.
  • You added a GCP project to the Hybrid Cloud Console.
  • You have enabled the following APIs in your GCP project:

    • Compute Engine API;
    • Identity and Access Management API.

Procedure

  1. Access Hybrid Cloud Console.
  2. Click Red Hat Insights > RHEL > Inventory > Images.
  3. Find the image you want to launch in the public cloud environment and click Launch in the Instance column. The Launch wizard opens.
  4. On the Account and customization page, complete the following steps:

    1. From the Select account drop-down menu, select the account you want to use.
    2. Optionally: From the Select template drop-down menu, select the template you want to use.

      If you do not specify the template, you launch the image to the default Virtual Private Cloud (VPC) with its firewall rules.

    3. From the Select machine type drop-down menu, select the machine configuration.
    4. In the Count field, select the number of images you want to launch and click Next.
  5. On the SSH key authentication page, select one of the options:

    1. Select existing SSH public key. From the Select public key drop-down menu, choose an existing SSH public key. Click Next.
    2. Add and save a new SSH public key. Enter a name for your new SSH public key and drag or upload a new SSH public key file. Click Next.
  6. On the Review page, review the details about the image launch process and click Launch.

Verification

  1. The Launch wizard shows the green checkmark with a message System launched successfully.
  2. To verify the instance is running, copy the ssh command displayed on the screen to your terminal and connect to the instance.

6.4. Configuring launch notifications

You can configure notifications for various events of the launching process. For information on how to configure notifications in the Red Hat Hybrid Cloud Console, see Configuring notifications on the Red Hat Hybrid Cloud Console.

Launch events

Launch failed
If an image launch fails, a notification is sent.
Launch completed
If an image launch is successful, a notification is sent.

Note, if you choose email notifications, these notifications contain detailed information about the event. For example, if the Launch completed event is triggered, the email notification contains the list of the launched instances.