Questions tagged [cloud-init]

131 questions
2
votes
0 answers

Cloud Init with Flatcar Linux -- Configuration not applying when passing custom file?

I'm using Telmate's Terraform provider for Proxmox and trying to deploy Flatcar linux virtual machines using Cloud Init by passing files via cicustom. Based on their example, I have crafted the following Terraform file: variable "pve_user"…
TJ Zimmerman
  • 251
  • 6
  • 18
1
vote
1 answer

Cloud-init: Add apt source key gnupg not installed

I've a cloud-init script that is used to create and configure a Debian 10 VM and since I want to install nginx I have to add its repository to APT. I'm trying to do it like this: apt: preserve_sources_list: true sources: nginx: …
TCB13
  • 1,166
  • 1
  • 14
  • 34
1
vote
1 answer

Add network interfaces using cloud-init

I'm trying to use CloudInit to spin up VMs in a KVM hypervisor environment. Thereby I want to create two new ethernet interfaces ens3 and ens4. I have downloaded the Ubuntu 18.04 image and created the following config…
1
vote
1 answer

Is there a reason for keeping cloud-init after it has run?

As I understand it cloud-init helps initialize a cloud server. But after the cloud server is initialized is there ever any further need to run cloud-init? I would like to remove it if it is no longer useful.
John Elliot V
  • 333
  • 2
  • 10
1
vote
1 answer

Azure - cloud-init error, No instance datasource found

I am trying to run a Ubuntu Linux VM from the custom VHD I prepared. I provision the VM but seems there is some issue with the Vm agent and cloud-init. Host name/ DNS is not set on boot Cloud-init log shows "No instance datasource found! Likely bad…
rvarghese
  • 21
  • 1
  • 3
1
vote
0 answers

Cloud-init local stage on FreeBSD

I have installed cloud-init on FreeBSD, from the pkg repository. FreeBSD is running on oVirt, using the config-drive datasource. I use it to set a different hostname of the machine on boot. My problem is that I don't get it running in the "local"…
Kai Hatje
  • 143
  • 4
1
vote
1 answer

Network errors when running `apt-get update` in cloud-init script

Yesterday I set up my first Autoscaling Group in AWS. I wrote a cloud-init/userdata script to install my application and I tested it ~40 times without any errors. Just before I went home it suddenly stopped working, new instances that start never…
1
vote
2 answers

Cloud-init is failing to execute awscli command in User Data

Need help to fix the error and enable the instance to run issue free User Data script. Issue: cloud-init is unable to execute awscli command. I have mentioned a custom script (which will be present on the instance created by my AMI) to run as part…
quark2is
  • 23
  • 1
  • 4
1
vote
1 answer

How do I set the hostname of an AWS Lightsail VM?

Reviewing cloudinit configs on my new Lightsail VM, it seems to be talking to a metadata API for settings like hostname. I don't see any lightsail UI component to set the hostname, but if I poke at the ec2 metadata from the VM, I see some user-data.…
jldugger
  • 14,342
  • 20
  • 77
  • 129
1
vote
0 answers

What is the difference between "cloud-init.log" and "cloud-init-output.log"?

I noticed in my EC2 instances (spun up by CloudFormation) that a cloud-init.log and a cloud-init-output.log file exists on /var/log. What is the difference between the two? Are they the output of the same script, or different scripts?
1
vote
1 answer

Cloud-init fails on 'ssh-authkey-fingerprints' module

I'm trying to pick up on Puppet a bit, however, I'm having trouble simply bootstrapping containers (not even to bootstrapping them with the puppet information). In my cloud-init yaml file I've defined a basic user with a public key. I'm trying to…
Casey Weed
  • 111
  • 6
1
vote
1 answer

EC2 userdata not running with custom per-boot cloud-init script

I'm trying to start a process at boot on a Ubuntu 14 LTS AMI (ami-3bdd502c) using cloud-init's per-boot script facility and configure that process with EC2 userdata. The process has sensible defaults but I'm attempting to allow these defaults to be…
richid
  • 140
  • 6
1
vote
2 answers

Proxy settings at/prior to cloud-init runtime

Instances launched into our VPC in EC2 require HTTP_PROXY and partners to be set to access anything located outside the VPC. Now I've run into a problem (using data pipeline) where I have no control over the user data passed in for cloud-config.…
kadrach
  • 113
  • 1
  • 5
1
vote
1 answer

SSH fails on CoreOS when substituting etcd cloud-config variables

I have a minimal cloud-config that works without problems on DigitalOcean. I added some hardening for SSH, which requires restarting sshd.socket to become effective: units: - name: sshd.socket command: restart Adding this unit alone (no…
Rolf W.
  • 111
  • 2
1
vote
1 answer

Cloud-config resize filesystem fails

So, my adventure started like this: I had an OpenSUSE 13.1 VM, and I wanted to upgrade to 13.2, so one of the main differences between the 2 community amis (13.1 - `` and 13.2 -ami-3a6cc64d) was that the 13.2 image uses HVM - instead of PV -…
gsaslis
  • 111
  • 5
1 2 3
8 9