Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

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

    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

    • Customize your deployments with the Red Hat Developer Hub Operator

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

    Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    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

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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