Questions tagged [cloud-init]

cloud-init is the Ubuntu package that handles early initialization of a cloud instance. It is installed in the Ubuntu Cloud Images and also in the official Ubuntu images available on EC2. (Ubuntu Docs)

187 questions
16
votes
2 answers

How can I disable cloud-init?

I have a fully-configured instance and an image from that for an autoscaling group. When autoscaling new instances from this image, it calls cloud-init. cloud-init changes the hostname and breaks fstab. I want to prevent cloud-init from starting on…
homm
  • 263
  • 1
  • 2
  • 5
5
votes
1 answer

How can I upgrade cloud-init?

I am working on Ubuntu 12.04 with cloud-init 0.6.3-0ubuntu1 My question is can I upgrade it to 0.7.5-0ubuntu1.1?
DAvid
  • 51
  • 2
3
votes
1 answer

How can I run complex piped commands in Autoinstall / Cloud-Init?

In either cloud-init user-data runcmd, or in autoinstall late-commands, I need to essentially run this command as part of a Clevis + Tang initialization for a LUKS encrypted volume: echo '' | clevis luks bind -d /dev/sda2 tang '{"url":…
3
votes
2 answers

Ubuntu 20.04.3 and autoinstall not starting

I have autoinstall working. However - I am trying to do it on a non-EFI box (VM in this case) and it is not working- I just get the language selection screen. My boot line is: root=/dev/ram0 ramdisk_size=1500000 nouveau.modeset=0 fsck.mode=skip…
J Geis
  • 31
3
votes
1 answer

What did cloud-init do with the SSH key it generated when I installed Ubuntu server and why was that necessary?

When installing Ubuntu server I saw that cloud-init created an SSH key for me. Why did it do this? Did this key get uploaded to any server or did it stay on my local machine for my personal use?
2
votes
1 answer

Ubuntu Cloud Image 20.04, cloud-init error

esxi 8.0, Ubuntu 20.04(focal). I've created cidata.ico with hdiutil makehybrid -o cidata.iso cidata -iso -joliet user-data content: #cloud-config users: - name: demo groups: sudo shell: /bin/bash sudo: ALL=(ALL) NOPASSWD:ALL …
Johny
  • 23
1
vote
2 answers

Where are the logs for my user-data script? cloud-init

If I paste a shell script into the user-data box when starting the standard Ubuntu AMI on EC2, I'm using cloud-init, am I not? My question is where does it log the output of such a script? Do I have to do something to turn logging on? I can't find…
cbare
  • 113
  • 1
  • 1
  • 5
1
vote
0 answers

cloud.cfg->'manage_etc_hosts' keeps changing my hosts file. But where the host name comes from?

This is my hosts file: # Your system has configured 'manage_etc_hosts' as True. # As a result, if you wish for changes to this file to persist # then you will need to either # a.) make changes to the master file in…
Allan Xu
  • 131
1
vote
1 answer

Cloud-config-auto install- root password

I am trying to install ubuntu 20.4 with cloud init, I would like to configure password for root so I tried this option but it didn't works. (vmware machine the login its form the consle) UPDATE- This option wroks for me. (Thanks Andrew…
HELLBOY
  • 57
1
vote
1 answer

Cloud-config-auto install (late comands random hostname + netwrok config)

I am trying to configure this network its working but when I login to os its not. Second How can I configure random hostname? Thank :) #cloud-config autoinstall: version: 1 apt: disable_components: [] geoip: true …
HELLBOY
  • 57
1
vote
0 answers

How to set up cloud-init

As I read most of the cloud-init documentation and watched some youtube videos about cloud-init I am still confused about how to use this software. Can someone help me understand? As I understood so far cloud-init should configure a linux machine…
1
vote
0 answers

Ubuntu 20 VM getting stuck showing Reached target cloud-init target

I am able to ssh to the host. But unable to get login Prompt on VMware web console. As I have to clone the host so need login prompt to change its hostname and IP. Had tried to disable cloud-init by creating a file /etc/cloud/cloud-init.disabled but…
0
votes
0 answers

cloud-init images are minimal. Is there any full server cloud-init image matched what we get with standard Ubuntu ISO installation?

I created a Proxmox cloud-init image and I am noticing the image is locked down and minimal. Is there any full server cloud-init image matched what we get with standard Ubuntu ISO installation? Update 1 I am taking my images…
Allan Xu
  • 131
0
votes
0 answers

Ubuntu, Cloud-init, Permission denied (publickey)

Ubuntu cloud image 20.04, ESXi 8 #cloud-config users: - name: demo groups: sudo shell: /bin/bash sudo: ALL=(ALL) NOPASSWD:ALL ssh_authorized_keys: - ssh-rsa AAAAB3Nz.... so far so good, but when I do ssh demo@192.168.50.159…
Johny
  • 23
0
votes
0 answers

Cloud init copy files from iso don't work

I'm looking for a way to copy file from the automate installation of ubuntu20/ubuntu22 LTS. I created special ISO with user-data commands but the when I am trying to do is to copy a file to a specific directory it seems working but after the restart…
HELLBOY
  • 57
1
2