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)

Filter by
Sorted by
Tagged with
0 votes
0 answers
79 views

Cloud-Init cloud-config script not started in UEFI

In the past we used packer to build BIOS-based Ubuntu 20.04 OVF templates an cloud-init to automate the configuration. This is working without any problems for several years now. Currently we are busy ...
Marcel van Heemst's user avatar
0 votes
0 answers
58 views

Ubuntu 22.04 Autoinstall how to disable security Updates

I am setting up clients every now and then using pxe -> autoinstall but after running the setup it takes very long to install the latest security updates. I want them to install later not while the ...
friendly joe's user avatar
2 votes
0 answers
112 views

Ubuntu server 23.04 netplan cloud-init python error

I've tried to find a solution and an answer myself before but didn't succeed. I recently changed my wi-fi SSID and thus had to reflect that change in my ubuntu server configs. On the raspi 4 ...
verypacific's user avatar
1 vote
2 answers
162 views

how to wirte a multiline text including space key to "late-commands" section in cloud-init "user-data" file

i am trying to write a user-data file so i could deploy many ubuntu server at the same time. but now i am stuck at the late-commands section. i am trying to add a netplan configuration to 01-network-...
Jw9394's user avatar
  • 13
0 votes
0 answers
33 views

Upgrade to Python3.9 cannot ssh to the Ubuntu EC2 instance

I'm creating a custom AMI using packer and ansible. The base AMI is an Ubuntu 20.04 provided by the Canonical and it's customized using an ansible playbook. I'm installing python3.9 and setting it as ...
droritzz's user avatar
1 vote
1 answer
269 views

Ubuntu Server on Pi: Does cloud-init re-run every boot?

I installed the official Ubuntu Server 22.04 image on a Raspberry Pi 4. I also configured my wireless network in the network-config file on the SD card. That file gets transformed by cloud-init into /...
rgov's user avatar
  • 389
0 votes
0 answers
80 views

trouble using system-uuid for specific autoinstall config

I'm encountering difficulties fetching a specific #cloud-config file based on the SMBIOS UUID during the installation of Ubuntu 22.04 virtual machines using autoinstall. I have a general #cloud-config ...
lveltmaat's user avatar
0 votes
0 answers
136 views

Ubuntu 20.04 Autoinstall, Cloud-Init and Subiquity

I'm PXE booting the ISO and using the new Subiquity installer. I've got a working autoinstall setup/config with a working user-data file. What's not working is that I have an ansible: section that ...
Ken's user avatar
  • 1
0 votes
0 answers
30 views

Adding FIPS at end of autoinstall, how to do this correctly

We have a landscape server here from which we obtain FIPS code and updates. I want to add all of this during the autoinstall, in the late-commands section. But, I seem to be triggering something as ...
Forrest Aldrich's user avatar
0 votes
1 answer
160 views

Autoinstall storage: not working, Ubuntu does its own thing 20.04

I'm working with Ubuntu 20.40, where I'm creating an ISO with the user-data/meta-data on the image, then booting a VMware VM off it. I watch the output, it seems to create the logical volumes and ...
Forrest Aldrich's user avatar
0 votes
1 answer
191 views

Installing packages via autoinstall vs user-data

I've read the entire autoinstall documentation and the entire cloud-init documentation, but I still don't understand the apparent overlap/redundancy between the ability to install packages in ...
Alex Dresko's user avatar
0 votes
0 answers
44 views

UEFI code for arm64-based Ubuntu cloud-images

I am doing lots of work with VMs and love using cloud-images to spin up new VMs inside QEMU very quickly. I do have a couple of questions: The current cloud-images documentation is good but at no ...
sbates-nvme's user avatar
0 votes
1 answer
141 views

20.04 Cloud-init appears to disable ipv4 DHCP on eth0

I'm doing a fresh install of 20.04 on some Raspberry Pi 3s. The SD cards were flashed with Ubuntu 20.04 Server (32bit) using the RPi imager. When cloud init finishes wlan0 has an ipv4 address from ...
NetFool's user avatar
  • 131
0 votes
1 answer
108 views

configuring vm with terraform and cloud-init in an Azure Env

Hi i'm a newby so forgive me if i make an error, I'm very new to cloud-init and know terraform but not intimately. I'm using terraform cloud to provision my vm. this is my first encounter with ...
Mac's user avatar
  • 1
1 vote
0 answers
287 views

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 ...
Allan Xu's user avatar
  • 121
0 votes
2 answers
936 views

cloud-init messages cluttering login screen in Ubuntu Server 22.04

I'm sorry to bring this up again as I know this question has been asked a few times before as shown here, here and here. These solutions have worked excellently for me right up until 22.04, but now ...
Davorian's user avatar
0 votes
1 answer
462 views

Cloud-init Always Adding Ubuntu User?

I am using Packer and cloud-init to create templates for proxmox. I am so lost and annoyed. Every time I create a template my user is created with a uid and gid 1000 then right after it the Ubuntu ...
noah's user avatar
  • 1
0 votes
0 answers
386 views

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 ...
Allan Xu's user avatar
  • 121
2 votes
1 answer
215 views

Ubuntu Multipass Cloud-init SSH Issue: Retaining 'ubuntu' User's SSH Key While Injecting My Own

I am trying to create a cloud-init configuration file to inject my own SSH keys into the "ubuntu" user for a Multipass instance. I have managed to successfully inject my SSH key when I ...
vmvart's user avatar
  • 23
0 votes
0 answers
208 views

configure default static IP address in cloud-init nocloud config (CIDATA) on usb

I have built a custom Ubuntu 22.04 install that runs unattended from a USB stick. I am now trying to add a default static IP address that the target will boot with. These systems will be booting in ...
Robosmith's user avatar
0 votes
2 answers
1k views

Autoinstall local repository

I have my own ISO based on Ubuntu 22.04 that I generated myself. Here is my Autoinstall - #cloud-config autoinstall: version: 1 identity: hostname: foo-ubuntu password: "ToReplace&...
Utz's user avatar
  • 79
2 votes
0 answers
152 views

Ubuntu autoinstall disable prompt during iso installation

I'm generating my own iso using autoinstall, here is the configuration: #cloud-config autoinstall: version: 1 identity: hostname: foo-ubuntu password: "qqqaaaqqqaaa" username:...
lior_azroel's user avatar
1 vote
1 answer
501 views

How would I autoinstall 22.04 from USB?

What the best way using Subquitity/Seed/Cloudinit to auto install an Ubuntu Desktop 22.04 image? Our staff use Ubuntu and rather than keeping one fat image lying about which is time consuming to ...
Definity's user avatar
  • 123
0 votes
2 answers
8k views

How to set ssh keys in cloud-init?

I am using cloud-init to set up a Raspberry Pi with Ubuntu Server 22.04.1. I would like to set the device's SSH keys so I can connect without being vulnerable to a man-in-the-middle attack. My ...
Dragon's user avatar
  • 29
0 votes
0 answers
245 views

Ubuntu Temporary failure in name resolution

I have downloaded a Ubuntu 20.04 cloud image from https://cloud-images.ubuntu.com/ and ran it as an instance in OpenStack. My OpenStack is also running on a VM using VMware. I have also assigned a ...
ehsan khodayar's user avatar
0 votes
0 answers
712 views

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 ...
Johny's user avatar
  • 23
2 votes
1 answer
813 views

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/...
Johny's user avatar
  • 23
0 votes
2 answers
2k views

Unable to create custom iso Ubuntu 22.04 using autoinstall

I am trying to create a Single Ubuntu 22.04 custom iso from ubuntu-22.04.1-live-server-amd64.iso using cloud-init configuration for autoinstallation. I have my meta-data and user-data files in /cdrom/...
kanjarla rojalahari's user avatar
0 votes
0 answers
429 views

Headless "Re-config" WiFi Ubuntu 22.04 Server Image For Distribution

I have created a Raspberry Pi image - "ROS2 Humble on Ubuntu 22.04 Server Jammy For GoPiGo3 Robots", and used "sudo PiShrink -p -v -z 32GB.img Distro2G.img" to shrink the image for ...
Cyclical Obsessive's user avatar
0 votes
1 answer
1k views

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 ...
Dominik Maier's user avatar
1 vote
1 answer
888 views

Proxmox ubuntu template created with Packer disables default user account

This is my Packer config for template creation in Proxmox ubuntu-server-jellyfish-docker.pkr.hcl # Ubuntu Server Jellyfish Docker # --- # Packer Template to create an Ubuntu Server (Jellyfish) with ...
Roman Koval's user avatar
1 vote
2 answers
539 views

Ubuntu 22.04 autoinstall partiotioning with condition

I'm using Ubuntu autoinstall to install my software on Ubuntu 22.04, during OS installation, non-interactively (from ISO). We have one disk mapped to the server. My software installation requires the ...
Utz's user avatar
  • 79
0 votes
1 answer
1k views

How to Clean and Prepare an Image

Starting with one of the official Ubuntu cloud images, after installing software and making configuration changes, what is the proper next step to clean the image before shutdown so that it is ready ...
Utkonos's user avatar
  • 143
2 votes
0 answers
1k views

How can I properly debug a faulty 22.04 LTS Server autoinstall done with the new subiquity frame?

edit2: Over the 2 weeks with subiquity and cloud-init, I pieced together a new shell script with example user-data file and an altered grub.cfg as the one by covertsh did not work for me any longer ...
Seemax's user avatar
  • 73
2 votes
1 answer
2k views

cloud-init schema.py Invalid cloud-config provided

Upon an attempted do-release-upgrade from Ubuntu Server 20.04.4 to 22.04, the installation ran, and now upon reboot, it is stopping with this error: cloud-init: schema.py[WARNING]: Invalid cloud-...
Power Wolf's user avatar
1 vote
0 answers
354 views

How to convert curtin storage configuration to cloud-init disk_setup

I am using the Cloud Images for Ubuntu 20.04 and 22.04 LTS to provision a template image for further provisioning. I previously tried using the Live Server Images with autoinstall and had no sucess ...
Shan-Desai's user avatar
0 votes
1 answer
960 views

Ubuntu 22.04 server autoinstall software RAID 1

I'm working on an Ubuntu 22.04 Server autoinstall. So far it works great on a single drive. But the next step is RAID 1... According to the cloud-init docs this is not supported as part of cloud-init ...
Andre Courchesne's user avatar
0 votes
0 answers
156 views

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 ...
HELLBOY's user avatar
  • 47
1 vote
0 answers
633 views

cloud init installation - copy files from iso

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 last I am trying to do is to copy a file to a specific ...
HELLBOY's user avatar
  • 47
1 vote
0 answers
5k views

Invalid cloud-config provided, Ubuntu 22.04

G-day! I'm trying to prepare an image for openstack. But I'm getting an error. cloud-init-output.log: 2022-08-08 20:01:34,225 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo ...
Vol4ik's user avatar
  • 11
0 votes
1 answer
794 views

cloud-config not being picked up by auto install

I'm trying to build my first vm image using Packer.io, vmware fusion and Ubuntu 22.04 autoinstall. Following this example https://www.youtube.com/watch?v=HHaG_ra5QFw Packer creates the vmx, start the ...
Jim Willey's user avatar
0 votes
0 answers
475 views

Set up ubuntu server 22.04 image for cloud usage on Digital Ocean

I am trying to prepare an ubuntu image for deployment on the digital ocean cloud, I have been following this tutorial for ubuntu 18.04 In the tutorial they ask me to remove the 50-curtin-networking....
Multidimension Tools's user avatar
1 vote
2 answers
487 views

How to configure autoinstall for ZFS on root

I tried to autoinstall ubuntu server providing the user-data file as stated in the documentation but specifically for root on ZFS on Virtualbox. I followed the cloud-init documentation to set the ...
Jorge Pires Couto's user avatar
0 votes
2 answers
1k views

pxe autoinstall fails with ubuntu 20.04.04

I use .pcengines.ch (apu2) hardware and set up a pxe environment autoinstall works with ubuntu-20.04.3-live-server-amd64.iso but it fails when upgrading to ubuntu-20.04.4-live-server-amd64.iso. Log of ...
dummyuser's user avatar
  • 953
1 vote
1 answer
43 views

Several systems have had an "ubuntu" added: where does it come from and can they be safely disabled?

Background: on some hardware hosts that have been built manually, I use the installer to create a user named "ubuntu" with UID 1000 for initial setup. Our systems automation checks for an ...
dannyman's user avatar
  • 558
2 votes
0 answers
2k views

Cloud init - storage configuration

I have two problem in the section of the storage (user-data file) 1. When I try to increase the /dev/sda2 with Gparted I cannot do it because the creation of the volume boot. ( see picture bellow) 2. ...
HELLBOY's user avatar
  • 47
1 vote
1 answer
3k views

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 ...
HELLBOY's user avatar
  • 47
0 votes
1 answer
2k views

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: ...
HELLBOY's user avatar
  • 47
0 votes
0 answers
515 views

v22.04 install on Supermicro via IPMI Virtual ISO file over the internet

Ok, I have a custom autoinstall cloud-init ISO that installs great on a Supermicro X11SSH-LN4F motherboard using Supermicro IPMI and its virtual Media ISO file system IF the IPMI is on the same local ...
Andre Courchesne's user avatar
2 votes
1 answer
1k views

early_command equivalent in cloud-init

I have an Ubuntu installer based on Ubuntu mini.iso which uses preseed. Now with the support for mini.iso, being stopped by Canonical, I'm trying to create an installer based on cloud-init. However, ...
unnikrishnan r's user avatar