Experience Red Hat OpenShift Virtualization: Advanced operations and automation

Red Hat® OpenShift® Virtualization allows organizations to run and deploy new and existing virtual machines on a modernized platform. Learn how to manage your environment and perform critical operational tasks often required of virtual machine administrators from day-2 onward.

This learning path is for operations teams or system administrators

Developers may want to check out Foundations of OpenShift on developers.redhat.com.

Get started on developers.redhat.com

Advanced management of virtual machines

18 mins

As Legacy Systems Inc. continues its expansion, we’ve found ourselves deploying Red Hat® OpenShift® Virtualization across multiple data centers and public cloud regions to host our critical virtual machines (VMs). With the potential to host virtualized clusters in various cloud providers such as Amazon Web Services (AWS), IBM Cloud, and Google Cloud (GCP) teams need to balance investments in and training on new platforms while keeping existing infrastructure and applications running. Managing these disparate VM workloads can become increasingly complex without a unified approach, which is where Red Hat Advanced Cluster Management for Kubernetes comes in.

Using Advanced Cluster Management as a single pane of glass interface to manage all of your virtual workloads no matter where they live is key to running a large distributed virtualized environment. In this module, we will explore how to discover our working cluster in Advanced Cluster Management, how to use it to visualize our virtual workloads, and how to deploy a virtual machine to a cluster remotely.

Prerequisites:

  • A computer with a web browser and internet access
    • A Chromium-based browser is preferred: these are recommended, as some copy/paste functions don’t work in Firefox for the time being
  • (Recommended for non-US users) Familiarity with special characters in other countries’ keyboard layouts, since the remote access console uses the US keyboard by default

In this resource, you will:

  • Discover your working cluster in RHACM
  • Visualize your virtual workloads
  • Remotely deploy a virtual machine to a cluster

Discover your cluster

Note: This section of the lab uses a shared Advanced Cluster Management hub cluster whose console URL will be provided by your lab proctor. You will login to the workstation interface where you will be assigned a user account: user1 - usern and will login with that user to complete this lab.

  1. Log in to the console of the shared Advanced Cluster Management hub with the assigned credentials for your lab user account.

00 openshift login

Figure 1. OpenShift login

  1. When you first log in, you will see that there are no clusters present to manage. Click the button to Import cluster.

01 import cluster

Figure 2. Import cluster

Note: It’s possible that if other lab attendees have advanced past this step the page will not exactly reflect the screenshot above. You can still import your cluster and continue your lab by clicking the Import Cluster button at the top.

01a import cluster alt

Figure 3. Import cluster alt

  1. The next screen you will be presented with is the Details page for the Import an existing cluster wizard. Fill in the fields on the page with the following values:
    • Name: userX-virt-cluster
    • Cluster set: legacy-systems-inc
    • Import mode: Enter your server URL and API token for the existing cluster

02 import cluster details

Figure 4. Import cluster details

  1. Once you have selected the Import mode you will be prompted to provide the Server URL and API Token to discover your cluster. You will need to get these values from your original cluster in order to discover it.
  2. Return to the tab with your original lab cluster open, and click on the admin user at the top and select the option to Copy login command from the dropdown menu.

03 copy login command

Figure 5. Copy login command

  1. A new tab will open and you will be prompted to login to your cluster through the htpass_provider authorization agent again. As a reminder, your cluster admin credentials are:
    • User: username
    • Password: password
  2. When you login you will see a large white screen with a link named Display Token. Click it.

04 display token

Figure 6. Display token

  1. When you click on it, you will see a page that shows you a CLI authentication command with both the API Token and the Server URL value.

05 display api token server url

Figure 7. Display API Token, Server URL

  1. Copy and paste each of these values over into their respective fields on the Details page of the Import an existing cluster wizard. You may click on the eye button on the right side to see the API Token to ensure it copied correctly. When you are ready to continue, click the Next button.

06 paste api token server url

Figure 8. Paste API Token, Server URL

  1. The next page in the wizard is the Automation page which allows you to configure automation templates using Red Hat Ansible Automation Platform to perform various cluster management duties in a multicluster environment. These actions are currently beyond the scope of this workshop, click the Next button to continue.

07 auto template

Figure 9. Automation page

  1. The last page in the wizard is the Review page which allows you to confirm the details you have provided. When you are ready, click the Import button.

08 import cluster review

Figure 10. Import cluster review

  1. You will see a brief pop-up that the process has begun and the cluster will start to import. The process should move fairly quickly, although this could be affected by the number of users attempting to import at the same time.

09 import in progress

Figure 11. Import in progress

  1. When the cluster import process completes you will see the cluster status listed as Ready and see a large amount of information about the cluster, including its Infrastructure type, the current subscribed software Channel, its Cluster set, links to open its console directly, and a list of Labels used to describe the cluster.

10 import complete

Figure 12. Import complete

Explore managed cluster resources

Now that we have discovered our cluster, let's take a look around at what benefits having Red Hat Advanced Cluster Management for Kubernetes provides us when managing multiple clusters.

  1. We can click on the Nodes tab to see a list of the physical nodes in our cluster and their current status. We can get a more descriptive view by clicking on a node itself. Try it now by clicking on worker node 3 in your managed cluster.

11 node list

Figure 13. Node list

  1. A new tab will launch and display the node page from your managed cluster, just as we reviewed in module 1.

12 node 3 details

Figure 14. Node 3 details

  1. We can close this window and we can also see collected graphs on the managed cluster by clicking on the Grafana link at the top of the page. Click the link now.

13 grafana link

Figure 15. Grafana link

  1. You will be prompted to login using your OpenShift credentials. Click the Log in with OpenShift button.

14 log in grafana

Figure 16. Grafana login

  1. The OpenShift login will appear and you will need to login with your associated UserX account and its password.

00 openshift login

Figure 17. OpenShift login

  1. You will land on the ACM - Clusters Overview dashboard where you will see basic info about every cluster in the lab environment that is being managed.
Note: Depending on when you reach this stage, it may take a few moments for data to populate in the graphs.

15 default grafana dashboards

Figure 18. Default Grafana dashboards

  1. You can click on the button for All Dashboards and select the dashboard for Executive dashboards / Single Cluster View in order to see how Advanced Cluster Management displays information about your cluster’s virtual machine deployments in a centralized manner.

16 virt cluster view

Figure 19. Virt cluster view

  1. The top panel of the single cluster view presents you with a lot of handy information about the virtual machine workloads on your cluster, including the total number of virtual guests, their current status, and a breakdown of the operating systems reported by each VM.

17 single cluster top

Figure 20. Single cluster top

  1. The bottom half of the single cluster view consists of a number of collapsible panels that show you important information about resource utilization for your worker nodes and the virtual machines in your cluster. Click on CPU Utilization to expand it down and take a look. You can also reset the time window for collected stats with the dropdown menu in the corner.

18 single cluster bottom

Figure 21. Single cluster bottom

  1. When you are done exploring the single cluster view, you can close that tab.
  2. You should now be back on the ACM - Clusters Overview page where you can select the All Dashboards button again and this time select Executive dashboards / Clusters Overview so that you can see a view of your entire multi-cluster estate.

19 multi cluster view

Figure 22. Multi-cluster view

  1. You will find that this dashboard presents information on each of our clusters, the total nodes available, the total number of virtual machines, and the status of those virtual machines across each cluster. Also with warnings, guest OS summaries, and resource utilizations just as before, but on a larger scale.

20 multi cluster dashboard

Figure 23. Multi Cluster dashboard

Now that we know how to observe the status of our virtual estate across a multicluster environment, let's see how we can manage it.

Note: You may now close the tab where Grafana launched and return to the Advanced Cluster Management console

Manage VMs from Red Hat Advanced Cluster Management

  1. Starting with the left side menu, click on Infrastructure followed by Virtual machines.
  2. You will be brought to a page that lists all of the virtual machines that Advanced Cluster Management can currently see.
  3. The columns present help you sort and identify specific virtual machines by their Name, Cluster, Namespace, or Node.
  4. The list of columns is fully customizable, and so are the number of machines displayed on the page.

22 virtual machine list

Figure 25. Virtual machine list

  1. The Launch links button provides you with shortcut links that open a new tab to either the virtual machine details page, the virtual machine console, or the observability metrics, all from one easy access point.

23 launch links

Figure 26. Launch links

  1. While clicking the Virtual machine details link from Launch links opens the VM management in a new tab, if you had to manipulate a number of VMs quickly it would be much nicer to do it directly from Advanced Cluster Management.
  2. You can do exactly that by clicking on the 3-dot menu on the right side of each VM, and you will see the list that appears is almost exactly the same as the actions list you see on the Virtual machine details page.
  3. You can use this menu to stop/start/restart a VM, take a snapshot, or edit the machine’s definition via YAML.

24 vm management

Figure 27. Virtual machine management

Summary

In this module we learned how to discover, observe and manage our virtualized workloads using Red Hat Advanced Cluster Management for Kubernetes. The content in this module is just the tip of the iceberg when it comes to what Advanced Cluster Management can do in a multi-cluster OpenShift Virtualization environment. As mentioned before Ansible automation can be leveraged to perform automated actions across multiple clusters, and powerful tools like GitOps can be leveraged to deploy sets of VMs and ensure that cluster configurations are kept in sync across the entire virtual estate.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top