Solution Pattern: Modernize your VM workloads using ROSA with OpenShift Virtualization

Workshop

Here are the workshops which are already available on demo.redhat.com:

Now we will be looking at our first scenario: Create Virtual Machines using GitOps on ROSA.

  • Installing the environment

    • Create an environment using this link.

  • Delivering the workshop

    1. Login to the bastion host available in the above CI.

      ocp virt 6
    2. Now fork this repo under your github account and after that clone the repo into the bastion host. Configure oc cli using the admin logins.

      ocp virt 7
    3. Run ./bootstrap.sh from virtdemos directory. It will deploy the OpenShift GitOps operator.

    4. After 2 mins, you will be able to see the OpenShift GitOps operator under Installed operators in OpenShift Console.

      ocp virt 8
    5. Now let us get the url from Routes under Networking for OpenShift GitOps server(ArgoCD) and open this url.

      ocp virt 9
    6. It will open the ArgoCD login screen, now click on “Login via OpenShift” and enter the credentials for OpenShift. After that we will see this screen:

      ocp virt 10
    7. Now we will create a RHEL VM by creating an argocd app using this cli from virtdemos directory: oc apply -f apps/ap.yaml

      ocp virt 11
    8. It will create an application in ArgoCD which in turn will create a RHEL Virtual Machine in OpenShift as shown in below images.

      ocp virt 12
      ocp virt 13
    9. We can see this virtual machine from the OpenShift console → Virtualization → Virtual Machines and we can connect it to the VM using the password we provided in rhel vm yaml.

      ocp virt 14
      ocp virt 15
      ocp virt 16
      ocp virt 17
    10. Now we have successfully deployed a RHEL VM using GitOps in OpenShift and are able to access it using the credentials.