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

How to install VMs and Ansible Automation Platform on Mac M1

October 25, 2022
Arnav Bhati
Related topics:
Automation and managementLinux
Related products:
Red Hat Ansible Automation PlatformRed Hat Enterprise Linux

Share:

    Most of the time, we create our own Ansible playground to test Playbooks, features of the Red Hat Ansible Automation Platform (AAP), and many other things. We create our dedicated environment to test AAP for faster troubleshooting and resolution of customer issues.

    Previously, it was a pain to install virtual machines on a Mac with an M1 chip. But now, Red Hat Enterprise Linux (RHEL) VMs can be easily installed using UTM, a system emulator and virtual machine host for macOS.

    How to install a RHEL VM using UTM

    It should take less than two hours to finish the setup, including installation.

    To create VMs (RHEL 8.6 for automation controller) on Mac M1 machines using UTM, follow these steps:

    1. Download and install UTM.

    2. After installation, click “+” to create a VM.

    3. Select virtualize and click Linux.

    4. Download the RHEL 8 ISO DVD image.

    5. Click on browse and select the image. Then click continue.

    6. Select the RAM for the automation platform as per the AAP-2.2 minimum requirements document.

    7. Select the 100GB disk size, then click continue.

    8. Give the appropriate name to your VM, then check the Open VM Settings button.

    9. Navigate to the network section. Under network mode, select bridged (advanced).

    10. Click the Play button to start the installation.

    11. Fill in the details you need to install RHEL 8 as your VM.

    12. After the installation is complete, close the VM.
    13. Click the VM name in UTM and unselect the CD/DVD option. Now your RHEL machine will start normally.

    14. Enable the wired connection from the network connection settings.

    Figure 1 illustrates the installed RHEL 8 VM.

    A screenshot of the installed RHEL 8 virtual machine.
    Figure 1: Your VM is ready to use!

    Install AAP on RHEL VM

    To get your VM ready to install AAP 2.2, follow these steps:

    1. Open the terminal and type ifconfig. Note that the IP address will be in a similar subnet of your Mac IP address.

    2. Open a terminal in your Mac machine and connect from your Mac to the newly created VM via SSH.

    3. Now your VM is ready to install AAP 2.2. Create a Red Hat Registry Service Account, following the instructions in the Creating Registry Service Accounts guide.

    Now install AAP 2.2 by following these steps:

    1. Download AAP-2.2 from the Red Hat Ansible Automation Platform Product Software site.
    2. Edit the inventory file and add the correct hostname for your automation controller.
    3. Mandatory parameters for inventory file:
      • [automationcontroller]
      • [all:vars]: Admin password for your AAP controller
      • pg_password: Add password for database.
      • registry_username and registry_password: Credentials for container registry to pull execution environment images.
    4. Run the setup.sh script.

    The following listing illustrates a snippet of the inventory file for AAP-2.2 installation.

    # control.example node_type=control
    # hybrid.example node_type=hybrid
    # hybrid2.example <- this will default to hybrid
    [automationcontroller]
    #192.168.0.9 ansible_connection=local
    #127.0.0.1 ansible_connection=local
    aap ansible_connection=local
    [automationcontroller:vars]
    peers=execution_nodes

    After successfully finishing the setup script, you can access the automation controller server from https://<TOWER_SERVER_NAME>/. In this scenario we are using aap as the hostname, so the URL will be https://app/ to access our automation controller UI.

    Figure 2 illustrates the UI for the AAP-2.2 controller.

    Figure 3 : AAP controller UI
    Figure 2: AAP-2.2 controller UI

    Note that the newly created VM should define a hostname in /etc/hostname. It would be best if you used this name in the automation controller. Otherwise, the installation will fail. Here's how you'd check the hostname of the controller machine in this file:

    [root@aap aap-2.2-test]# cat /etc/hostname
    aap

    Summary

    Now that we have shown you how easy it is to install RHEL VMs using UTM, try it for yourself. Refer to the Red Hat Ansible Automation Platform 2.2 Documentation and Red Hat Ansible Automation Platform Installation Guide for further information and resources. Feel free to comment below. We welcome your feedback.

    Related Posts

    • What’s new in Ansible Automation Platform 2.2

    • Managing Windows Updates with Ansible in Red Hat Enterprise Linux

    • Example of using Ansible to update Container Native Storage

    • Good news: Business automation is not about SOA

    Recent Posts

    • Alternatives to creating bootc images from scratch

    • How to update OpenStack Services on OpenShift

    • How to integrate vLLM inference into your macOS and iOS apps

    • How Insights events enhance system life cycle management

    • Meet the Red Hat Node.js team at PowerUP 2025

    What’s up next?

    Automation IT

    Automating IT operations lets you do more with what you have, freeing up teams to work on projects that deliver greater business value. In An IT executive's guide to automation, you'll discover the benefits of a long-term transformative automation strategy, explore automation adoption best practices, and more.

    Download the e-book
    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