Unable to customize linux VM using cloudinit on RHEV 3.5.5

Solution In Progress - Updated -

Issue

  • Trying to provision VMs in a CloudForms 4.0 + RHEV 3.5.5 environment. Added an simple cloudinit script:
# cloud-config
runcmd:
- echo "OK..." > /etc/motd

While provisioning a VM via Infrastructure --> Virtual Machines --> Lifecycle --> Provision VMs, select the cloudinit script. But after cloning the template, the cloudinit scripts does not get injected to the provisioned VM:

- /var/lib/cloud/instance/user-data.txt is empty
- /var/lib/cloud/instance/datasource.txt does not include "DataSourceConfigDrive" (attached as datasource_3.5.5.txt)
- cloudinit service waits for user data during boot, and times out eventually - please see the attached /var/log/boot.log for details (attached as boot_3.5.5.log)

Environment

  • Red Hat CloudForms 4.0 (5.5.0.13)
  • Red Hat Enterprise Virtualization 3.5.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.