Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

A self-service approach to building virtual machines at scale

August 14, 2024
Valentina Rodriguez Sosa
Related topics:
Developer ProductivityDeveloper ToolsDevOpsGitOpsHelmApplication modernizationVirtualization
Related products:
Red Hat Developer HubRed Hat OpenShiftRed Hat OpenShift Container PlatformRed Hat OpenShift Virtualization

Share:

    In Red Hat Developer Hub using Red Hat OpenShift Virtualization, developers can build and deploy their applications and build new virtual machines (VMs) by creating a component and choosing a pre-defined template. 

    Platform engineers and operations can extend self-service of creating VMs for developers and enable each software template via RBAC. 

    In the previous article in this series, we demonstrated how Red Hat OpenShift Virtualization and Red Hat Developer Hub can increase developer productivity by building virtual machines with a click of a button. In this article, we showcase the user experience for developers when building a new virtual machine based on the definitions of platform engineering and operations. We will define the developer experience, such as how much a developer can control and define during the VM creation, from deciding the VM's name to the VM's disk size. In this case, the developers can only configure the VM's name. The user experience is defined with the software templates, in the following sections we will show how to build for VMs Red Hat Enterprise Linux (RHEL) 9 medium. In this article, the same experience applies to the VMs Red Hat Enterprise Linux (RHEL) 9 large.

    Build a RHEL 9 VM medium size from Red Hat Developer Hub

    To begin, ensure you are logged in to the Red Hat Developer Hub UI. From the left menu, click Create.

    Select RHEL9 VM Medium Template using software templates, as shown in Figure 1.

    A view of the available templates in the Developer Hub UI.
    Figure 1: Available templates to be used for VM creation.

    Step 1: Provide information about the source code location

    In this case Red Hat Developer Hub is already integrated with GitLab. Repo Host is the GitLab domain already installed in Red Hat OpenShift. Developer Hub will use this input data to upload the source repository and manifests. See Figure 2.

    The RHEL9 Medium Template in the Provide information about the GitLab location phase. The user must fill in the field called Repo Host and another called Repo Group.
    Figure 2: Using the Software Templates to build a VM by providing the GitLab location.

    Step 2: Provide information about the environment information

    Fill in the fields (depicted in Figure 3) as follows:

    • Cluster ID: the OpenShift domain. Red Hat Developer Hub will use this input data to build and deploy the application. In this case, ".apps.cluster.test.myorg.com".
    • Namespace: the OpenShift namespace. Red Hat Developer Hub will use this input data to create the VM in that namespace. In this case, "rhdhub-user1".
    • Owner: your user ID. Red Hat Developer Hub will use this input data for the build process. In this case, "user:user1".
    The RHEL9 Medium Template in the Provide information about the GitLab location phase. The user must fill in the fields called Cluster ID, Namespace, and Owner.
    Figure 3: Using the Software Templates to build a VM by providing the environment information.

    Step 3: Provide the desired VM's name

    The Component ID is the VM’s name, which in this case is "app-legacy". Red Hat Developer Hub will use this input data to create the VM. See Figure 4.

    The RHEL9 VM Medium Template in the Provide Build information phase. The user must fill in the Component ID field.
    Figure 4: Using the Software Templates to build a VM by providing the build information.

    Step 4: Review and create

    Congratulations! You have successfully built a virtual machine into OpenShift. Now you can explore the new virtual machine from the Overview page shown in Figure 5.

    The Overview page showing information about the new virtual machine.
    Figure 5: The component overview from Developer Hub.

    The links on this page point to the OpenShift Console to access the VM’s details as well as the VM’s VNC Console. 

    By clicking VirtualMachines, I’m able to navigate to the VM in the OpenShift Console, as shown in Figure 6.

    The VirtualMachines > VirtualMachine details page.
    Figure 6: The VM Overview tab from the OpenShift cluster.

    By clicking VNC Console I can navigate and access the VM’s VNC, as shown in Figure 7.

    The result of clicking VNC Console in the OpenShift cluster.
    Figure 7: The VM VNC Console from the OpenShift cluster.

    Then, review the VM’s Pods from Developer Hub (Figure 8).

    The Developer Hub UI showing the virtual machine's pod.
    Figure 8: The VM’s pod from Developer Hub.

    Conclusion

    Developers can create many instances from VMs' pre-defined software templates with just a few clicks. Software template customizations will determine how many templates will need to be available for developers to access the different types of VMs required.

    Next

    Continue reading Part 3 of this series: Create software templates for VMs with OpenShift Virtualization.

    Last updated: September 12, 2024

    Related Posts

    • A developer’s guide to Red Hat Developer Hub and Janus

    • Achieve more with less using Red Hat Developer Hub's self-service features

    • Red Hat Developer Hub: Your gateway to seamless development

    • Building virtual machines with Red Hat Developer Hub: The what, why, and how

    Recent Posts

    • Assessing AI for OpenShift operations: Advanced configurations

    • OpenShift Lightspeed: Assessing AI for OpenShift operations

    • OpenShift Data Foundation and HashiCorp Vault securing data

    • Axolotl meets LLM Compressor: Fast, sparse, open

    • What’s new for developers in Red Hat OpenShift 4.19

    What’s up next?

    Learn how to onboard developers onto Red Hat Developer Hub, so they can import and use relevant templates and run the application on the development environment.

    Start the activity
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue