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
6 views

Ubuntu on Azure - flood of sr0 errors in syslog even on new deployments

I am experiencing issues with installation of an Ubuntu server (22.04 LTS) on Azure using the standard portal options (either create VM and select Ubuntu or direct create Ubuntu server). Can anyone ...
1 vote
2 answers
608 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 ...
0 votes
2 answers
79 views

Unable to grow vm disk using Cloud-init's growpart and resizefs

I have Ubuntu 20.04 virtual machine server with Cloud-init installed. I am trying to get the vm's disk to be automatically expanded with Cloud-init. The vm host is ESXi and data source is None as I ...
0 votes
3 answers
2k 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 ...
0 votes
0 answers
49 views

Linux/ubuntu 22.04 block device busy?

For context ... I just built a new qcow image using packer based on Ubuntu 22.04. Most of our custom ansible roles are just reused from Ubuntu 20.04 and we are finding a few discrepancies. As part of ...
0 votes
0 answers
29 views

22.04 autoinstall, air-gap environment. Failing to run nfs-kernel-server

Unlike most packages that successfully run after being installed in a chrooted environment while preparing Ubuntu 22.04 autoinstall images, nfs-kernel-server seems to be an exception. The package ...
1 vote
0 answers
59 views

LXD with Cloud-init, `cloud-init status --wait` is hanging or running forever

I followed the Quick-start tutorial with LXD, and it went well until cloud-init status --wait, it is running forever. cloud-init status returned status: running. But when I tried it with multipass, it ...
3 votes
1 answer
3k views

cloud-init vs. kickstart vs. preseed

What is the difference between all those automation features? I found three of them so far: cloud-init kickstart preseeding Is one of these methods outdated maybe?
0 votes
0 answers
57 views

Could not login into TailScale during Ubuntu auto installation

Initially Ive tried official TailScale config: #cloud-config # The above header must generally appear on the first line of a cloud config # file, but all other lines that begin with a # are optional ...
1 vote
1 answer
156 views

late-commands using ubuntu autoinstall does not install tailscale app

I am trying to create autoinstall configuration for automatic ubuntu server installation and remote access. For remote access I would like to use Tailscale VPN. This example of my user-data file: #...
0 votes
2 answers
4k views

Terraform + Cloud-Init via extra_config & DataSourceVMware

Question: Has anyone successfully used terraform + extra_config + Ubuntu cloud images to interface with Cloud Init, providing metadata/userdata? I'm hoping this will interact with DataSourceVMware, ...
0 votes
1 answer
4k views

Packer Ubuntu Server 20.04 prompting for install confirmation despite `autoinstall` specified in `boot_command`

I am setting up an unattended install for Ubuntu Server 20.04 with packer. However, despite my specifying autoinstall in the boot_command, the installer always asks me for confirmation (I need to ...
-1 votes
1 answer
154 views

Grub configuration to load cloud-init from external removable disk in Ubuntu 20.04 autoinstall

I'm trying to auto-install Ubuntu 20.04 from an .iso file loaded in virtual media and I would like to load the cloud-init configuration from an external device. I've already followed this tutorial ...
29 votes
3 answers
36k views

How do I reload network configuration with cloud-init?

I've installed Ubuntu Server 18.04, and instead of the old /etc/network/interfaces, it seems that my network configuration now lives in a series of YAML files in /etc/netplan, of which the only one I ...
0 votes
1 answer
233 views

Combining autoinstall and cloud-init for 22.04?

Now that I got some understanding of the autoinstall, looking for more complex scenarios & unification for different server types. How do I mix autoinstall for engaging headless automated bare-...
4 votes
1 answer
9k views

How to add second extra network interface on Ubuntu 18.04 VM on OpenStack

I have a public interface on a Ubuntu 18.04 VM hosted by a provider that uses OpenStack. Now I want to add a second extra interface for the internal network. I'm not sure how to do that. Using the ...
0 votes
1 answer
176 views

How to stop updates during online cloudconfig autoinstall

I am trying to deploy a VM using packer and cloud-config autoinstall. I am using ubuntu-22.04.2-live-server-amd64.iso image which comes with linux kernel 5.15.0-25 During the configuration, kernel ...
2 votes
4 answers
16k views

cloud init fails on instance

I setup Ubuntu Openstack using Autopilot Installer / MAAS. When I try booting the VM the cloud-init fails to get metadata. Here's the Instance log (partial) cloud-init-nonet[25.04]: static networking ...
0 votes
2 answers
656 views

Try to setup autoinstall in Ubuntu 22.04 LTS booting through iso and use https://x.x.x.x./user-data to install unattended in VM not working

Autoinstall skips after searching for cloud-init and drops back to manual install interactive menu. Why is it not picking up the user-data file? Ubuntu 22.04 LTS I am trying to boot by editing grub: ...
0 votes
1 answer
4k views

Using Packer to deploy Ubuntu 20.04 to Proxmox

Problem TLDR: I've got this doing most of the AutoInstall (I think?) but it keeps bringing up the GUI install after it goes through the AutoInstall. Looking for any input into why it keeps bringing up ...
2 votes
2 answers
2k views

Cloud-init: how to get kernel parameters into the grub config files during autoinstall on 22.04?

I proceed struggling my way through the cloud-init and it's documentation. One of my current challenges is getting the cgroups flags for the kernel into the grub configs. The ultimate goal is to get ...
0 votes
1 answer
557 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 ...
0 votes
1 answer
515 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 ...
0 votes
1 answer
1k 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 ...
1 vote
0 answers
848 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 ...
1 vote
2 answers
755 views

AWS EC2 Ubuntu 20.04.4 LTS STARTUP taking too long because of cloud-init / url_helper.py issue

Everytime I restart my server I get this cloud-init related error that slows the startup by 5 minutes. Where this error comes from and how can I fix this? [ 5.458859] cloud-init[869]: Cloud-init v. ...
0 votes
1 answer
279 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 ...
1 vote
0 answers
239 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 ...
2 votes
0 answers
409 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 ...
2 votes
2 answers
535 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-...
0 votes
0 answers
118 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 ...
2 votes
1 answer
2k 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 /...
0 votes
0 answers
167 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 ...
0 votes
0 answers
68 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 ...
2 votes
1 answer
2k 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 ...
1 vote
2 answers
715 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 ...
0 votes
0 answers
99 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 ...
0 votes
1 answer
466 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 ...
1 vote
2 answers
2k views

Changing default values in /etc/ssh/sshd_config using cloud init config

While the following config added into the cloud_init.cfg file (user data file for building an Ubuntu16/18 VM) does result in those 2 parameters getting their values increased from default 300 and 0 ...
1 vote
2 answers
2k views

Troubleshooting Ubuntu autoinstall for desktop with LUKS

I'm trying to troubleshoot an Ubuntu autoinstaller using cloud-init & autoinstall. Ideally I'm trying to have it encrypt & partition the main OS disk on a laptop after the installer runs. ...
0 votes
2 answers
833 views

multipass cloud-init command line doesn't find yaml file

This seems like a pretty silly question as it's too simple. but Just getting feet wet with multipass, so one of the first things I try is using a cloud init file. But multipass reports error: No such ...
1 vote
0 answers
540 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 ...
2 votes
1 answer
5k views

Cloud-init nocloud set hostname dynamically from dhcp

My initial idea is not to disable cloud-init from the ubuntu server 18.04.1 I'm configuring, but I think it will be what I will do if I cannot solve this. The issue is I'm setting the hostname ...
2 votes
1 answer
337 views

Is it possible to use wpa passphrase hash in cloud-init's network-config file?

As the title states I'd like to obfuscate my wifi's credentials and know that wpa supplicant has wpa_passphrase to do this. My question is can I place wpa_passphrase's hashed output in the entry for ...
0 votes
0 answers
1k 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 ...
3 votes
1 answer
550 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 ...
0 votes
2 answers
16k 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 ...
3 votes
7 answers
21k views

Ubuntu 22.04 Autoinstall method

Does anybody figured out the right way of providing autoinstall data with custom iso file via grub? Clearly Ubuntu 22.04 doesn't provide the nice way of definition of boot commands via casper (sort of ...
2 votes
0 answers
214 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:...
2 votes
0 answers
3k views

ubuntu installer hangs forever at "executing late commands" on autoinstall

I'm trying to install my Ubuntu server 20.04.03 using autoinstall. I don't have any "late-commands", but the installer hangs at "executing late commands". Installer: full log: ...