Using the RHEV VMpayload API with cloud-init fails

Solution Verified - Updated -

Issue

The user-data.txt script injected into a VM configuration using the RHEV VMpayload API has all newlines removed when read from a file. The cloud-init tools cannot parse this file. Inecting a payload inline via curl also results in a file that cloud-init cannot parse.

How does one consistently, whether from a data file or inline, ensure that newlines are correctly inserted?

Environment

  • Red Hat Enterprise Virtualization (RHEV) version 3.2
  • A Red Hat Enterprise Linux (RHEL) version 6.4 Virtual Machine (VM) with the cloud-init package installed

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content