Questions tagged [cloud-init]

131 questions
0
votes
2 answers

Add a custom CloudInit part handler to an AMI

Is it possible to add a custom CloudInit part handler directly to an AMI so that it is available to all new instances without having to add it to the user data every time? I have a couple of custom MIME types we use to define configuration data for…
Mike Deck
  • 183
  • 1
  • 1
  • 7
0
votes
0 answers

RedHat 8 and cloud-init not running userdata until new VM is rebooted

I have a Terraform script that is cloning a RedHat 8 VM on vSphere V7. The VM is successfully cloned, but the user in my userdata is not created when the VM starts. If I reboot the VM after it is cloned, the user specified in the userdata is then…
PrestonDocks
  • 215
  • 3
  • 11
0
votes
0 answers

OpenSUSE MicroOS fails to start on OpenStack

I'm testing some operating systems cloud images to be used on OpenStack. I'm trying OpenSUSE MicroOS with the following butane configuration: --- variant: fcos version: 1.1.0 storage: filesystems: # Mount /home folder (required when creating…
0
votes
0 answers

Amazon Linux 2023 systemd dependencies on cloud-init: Getting ordering cycle

I have a templated systemd service that depends on cloud-init to be done on Amazon Linux 2023. [Unit] Description=My…
MikeJansen
  • 101
  • 2
0
votes
1 answer

Cloud-init in kvm guests (Debian and Centos) not setting interface settings

Im trying to use cloud-init to setup kvm guests (currently Debian 11 and CentOS Stream 8), and I am looking for help in correcting the meta-data and user-data files. Everything else seems to work, but network interface settings aren't set, though I…
Unpossible
  • 249
  • 1
  • 7
  • 20
0
votes
2 answers

metada conflict when deploying Openstack on GCP

We ran an openstack environnement on GCP with an arch of 1control_1compute_2ceph. When creating VM on openstack, the VM can't initialte the cloud-init, because wit reaches the metadata of GCP instead of private openstack. The openstack is the last…
0
votes
1 answer

Cloud-init installing packages on Debian with contrib sources

I need to install some zfs packages on Debian instances using cloud-init. One of the packages needs the contrib sources. I can get it to update the sources list, but the packages fail to install. If I remove the contrib source lists, some packages…
dj423
  • 23
  • 3
0
votes
1 answer

multipass cloud-init.yaml ssh asks for password

I am trying to get ssh working in multipass, so I can ssh user@ip -i key.pub not using multipass shell. I am using the following cloud-init: ssh-keygen -C vmadmin -f user_key users: - default - name: vmadmin sudo: ALL=(ALL) NOPASSWD:ALL …
Chris G.
  • 207
  • 1
  • 9
0
votes
0 answers

Creating and mounting a disk using cloud-init after a server is installed

Is it actually possible to run cloud-init to create a disk after the VM itself has been created? I have a VM created on a VMware platform. Currently cloud-init is not enabled on the GUI for creating VMs. I am trying to attach a newly-created disk.…
fooquency
  • 143
  • 4
0
votes
0 answers

Ubuntu 22.04.1 autoinstall cloud-config fails

I'm currently having an issue installing Ubuntu 22.04 via cloud-init. The server has two hard drives. There should be a /data partition on the second hard disk, but currently, the installation doesn't work. Error message Does anyone have an idea…
0
votes
1 answer

back up and restore host ssh_keys using cloud init autoinstall ubuntu

I am trying to automate VM installations for ubuntu 22.04 using autoinstall,cloud-init, qcow2 and virt-install. When I am reinstalling the OS on the same qcow2 file, I have a script that is run in early-commands that checks if there already is an OS…
0
votes
1 answer

Cloud-init / cloud-config to install node.js

From reading the cloud-init docs (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#apt-configure), it appears that this user-data should add the Nodesource source and key for apt, and install Node v18: apt: sources: nodejs: …
Doug Reeder
  • 101
  • 2
0
votes
0 answers

My cloud config template file does not seem to be working when I use it to boot up a droplet in Digital Ocean?

I'm using Terraform to spin up a DO droplet, using an Ubuntu and Docker image. Checkout below: resource "digitalocean_droplet" "web" { image = "docker-20-04" name = "web" region = "nyc3" size = "s-1vcpu-1gb" ssh_keys =…
andres
  • 101
  • 1
0
votes
1 answer

Why would cloudinit resort to using iid-datasource-none?

Had my ssh host key reset by GCE. Found /var/lib/cloud/instances/iid-datasource-none was created. https://cloudinit.readthedocs.io/en/latest/topics/datasources/fallback.html?highlight=iid-datasource-none is not enlightening as to cause /…
user1133275
  • 219
  • 1
  • 11
0
votes
1 answer

cloud-init seems to be ignoring write-files script

H! I am trying to configure VMs with cloud-init, using the terraform Libvirt provider. For some reason I don't understand, setting hostname works, but writing and running a script for additional configuration is completely ignored. Would appreciate…
Unpossible
  • 249
  • 1
  • 7
  • 20
1 2 3
8
9