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 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.