Linux deployments fail to execute the "runcmd" section of cloud-init
search cancel

Linux deployments fail to execute the "runcmd" section of cloud-init

book

Article ID: 393641

calendar_today

Updated On: 04-14-2025

Products

VMware Aria Suite

Issue/Introduction

New Linux 9 deployments are failing to execute the "runcmd" section of cloud-init along with possible other sections.

 

Should see an error like this:

    • /var/log/cloud-init.log
      " modules.py :  skipping modules runcmd because no applicable config is provided"

Environment

Automation 8.x / RHEL 9.0

Cause

Cloud-init requires that "unzip" be installed to the template.  This is required to load certain packages used by cloud-init.

Resolution

Install "unzip" to the template.

Additional Information

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/configuring_and_managing_cloud-init_for_rhel_9/configuring-cloud-init_cloud-content#running-first-boot-commands-with-cloud-init_configuring-cloud-init

https://techdocs.broadcom.com/us/en/vmware-cis/aria/aria-automation/8-13/assembler-on-prem-using-and-managing-master-map-8-13/maphead-designing-your-deployments/initialize-general/initialize-cloudconfig-commands.html