Prepare the IBM Z® environment

Before you start the migration, you must prepare your environment for the applications and the middleware.

Prerequisites

  • You have a Red Hat® OpenShift® cluster installed.
  • You have the Red Hat OpenShift Virtualization Operator installed.
  • You have access to the Red Hat OpenShift cluster as a user with `cluster-admin` privileges.
  • You have sufficient storage available.
    Note: For production environments, Red Hat OpenShift Data Foundation is recommended.
  • You have a second network interface card (NIC) available for Linux® bridging, if required.

Create a secret

  1. Create a secret with the public key by running the following command:
    oc create secret generic my-public-key-secret \
      --from-literal=publickey=<secret_key>"
    
    Note: For production environments, consider security policies for encryption.
  2. Alternatively, you can create the secret by using a YAML file.
    1. Convert your public key into Base64 by running the following command:
      cat id_rsa.pub | base64 -w0
    2. Create a secret.yaml with the generated key, similar to the following:
      apiVersion: v1
      kind: Secret
      metadata:
        name: my-public-key-secret
      type: Opaque
      data:
        publickey: <BASE64_ENCODED_PUBLIC_KEY>
    3. Create the secret from the secret.yaml file by running the following command:
      oc apply -f secret.yaml

A secret is created in the current active namespace so that the specified public key gets injected to the VM during cloud-init. The VM can now be accessed externally.