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
7 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 ...
user avatar
0 votes
0 answers
36 views

Dynamic conditional statements in cloud-init

Is there a way to have dynamic conditional statements in cloud-init User data script? ie find some value in the early-commands or runcmd and use it in conditional statement I'm aware of doing this ...
user avatar
0 votes
1 answer
47 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, ...
user avatar
0 votes
1 answer
308 views

How to set cloud-init/no-cloud in Ubuntu 22.04 to stop automatically rebooting

I want to stop Ubuntu install after finishing to reboot. In user-data I tried to use: power_state: delay: 30 mode: reboot message: Rebooting machine condition: false but is not ...
user avatar
1 vote
0 answers
176 views

Autoinstalling Ubuntu Server 22.04

I'm searching for a method to make a bootable USB that automatically installs Ubuntu 22.04 with a desktop environment. I had a setup for Ubuntu Server 20.04 (installing gnome during the setup) by ...
user avatar
  • 11
0 votes
1 answer
242 views

22.04 Server Auto Install Password

I'm using Packer to generate a new VMware vCenter template for Ubuntu Server 22.04. The packer build goes pretty well until near the end, where it seems to run into issues with the ssh password. The ...
user avatar
0 votes
2 answers
375 views

Removing cloud-init from Minimized Server marks important network packages for removal

I have tested removing cloud-init using this guide on Ubuntu Server 22.04 and Ubuntu Server 22.04 (minimized) installed with the default settings. Uninstalling cloud-init from full Ubuntu Server does ...
user avatar
1 vote
1 answer
235 views

Ubuntu 20.04 cloud-init won't configure network

The issue I have is the exact same as documented by someone on 18.04 years ago on StackOverflow but the solution there doesn't work. My steps to reproduce the problem are as follows: I start with an ...
user avatar
0 votes
1 answer
70 views

Can anyone provide me with a working example of ubuntu-cloud-init.cfg for an Impish kvm/qemu host?

I've been pulling my hair out for two days trying to get a working cloud init config for 21.10 guest VMs on a 21.10 host. The problem is authentication. No user can authenticate to the VM using virsh ...
user avatar
  • 168
3 votes
5 answers
3k 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 ...
user avatar
0 votes
0 answers
73 views

cloud-init fails to configure repositories GPG keys

I would like to put keyserver references of GPG keys instead of plain content of keys in my cloud-init user-data, like this : firefox.list: source: "deb [signed-by=/etc/apt/trusted.gpg] ...
user avatar
1 vote
0 answers
141 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. ...
user avatar
  • 111
0 votes
0 answers
10 views

Unable to find a system nic while running cloud-init

I've just encountered a problem while using cloud-init to config ubuntu18.04's network. I can only show you a screenshot from BMC console. From this screenshot, you could see that cloud-init found all ...
user avatar
0 votes
0 answers
247 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?
user avatar
  • 111
1 vote
1 answer
205 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. ...
user avatar
1 vote
1 answer
44 views

Should I overwrite default cloud.cfg from cloud VPS provider

Generally, should I overwrite default cloud.cfg from cloud VPS provider when prompted after run apt upgrade? This is the differences: --- /etc/cloud/cloud.cfg 2021-11-06 07:20:42.239580730 +...
user avatar
0 votes
0 answers
53 views

Workaround wanted for mirror connection failure during autoinstall

We are using Packer 1.7.10 under VirtualBox 6.1.30 on macOS 11.6.3 to build development VMs based on Ubuntu Server 20.04.3, using cloud-init autoinstall from the server ISO. The user-data file ...
user avatar
  • 101
0 votes
1 answer
211 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 ...
user avatar
  • 143
0 votes
1 answer
254 views

Cloud-init Empty User-data

Problem I have been trying (and failing) to get Ubuntu 20.04 to autoinstall. It keeps going through most of the process, but when I try to access the SeedFile s=http://myip:port/file it will ...
user avatar
0 votes
1 answer
871 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 ...
user avatar
1 vote
1 answer
914 views

How to Make Ubuntu Autoinstall ISO with Cloud-init in Ubuntu 21.10

I have working 20.04 process where able to create the ISO file. Reference: https://gist.github.com/s3rj1k/55b10cd20f31542046018fcce32f103e But if I an trying the same with ubuntu 21.10, few files are ...
user avatar
  • 11
1 vote
1 answer
256 views

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 '<secret&...
user avatar
0 votes
0 answers
57 views

Weird Network slowness on qemu vms

I've created two qemu VMs using below command. Both VMs are on virbr0 bridge. qemu-system-x86_64 \ -drive "file=bionic-server-cloudimg-amd64.img,format=qcow2" \ -drive "file=${...
user avatar
  • 101
0 votes
0 answers
200 views

Cloud-config : install from local repository

I want to install ubuntu 20.04 using #cloud-config/ And I want to use local repository to install the packages and set that source.list as the source.list of the installed system: apt: Set to False to ...
user avatar
  • 1
0 votes
1 answer
785 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 ...
user avatar
  • 133
3 votes
1 answer
847 views

Ubuntu Server 20.04 cloud-config adding user does nothing

I am trying to create a VirtualBox .box image of Ubuntu Server 20.04 with packer. The box is to be later used by Vagrant. I want to have a single user (vagrant) with root privileges who logs through ...
user avatar
  • 133
2 votes
1 answer
204 views

How do I pass a cloud-init config when creating an LXD container?

I've been reading through the LXD documentation and blogs and stackexchange answers that say LXD is supposed to have some kind of init syntax that allows you to pass cloud-config data to your ...
user avatar
  • 313
0 votes
0 answers
187 views

Cloud-init doesn't run as first boot for instance launched from an AMI created from another instance

We configure AWS EC2 instances (Ubuntu 20.04) with cloud-init using user-data scripts. We're noticing the user-data scripts don't execute if they are run on instance which is launched from a custom ...
user avatar
0 votes
0 answers
85 views

Ubunut 21.10 IPv6 only KVM/qemu VM With CloudInit: no ping / ssh possible

I am running Proxmox and i have a Ubuntu 21.10 VM with only a public IPv6 address that is setup with CloudInit (using ubuntu-21.10-server-cloudimg-amd64-disk-kvm.qcow2). So no IPv4 address. When i try ...
user avatar
0 votes
1 answer
188 views

Can I override the LVM volume group name using storage: layout in the autoinstaller?

I have physical machines with multiple (n) hard-drives that I want to install identical copies of Ubuntu 20.04 on using the Automated Server Install. My hope was to just be able to use the LVM layout ...
user avatar
0 votes
1 answer
336 views

Multiple instances of /usr/bin/cloud-init using a lot of CPU

I have a home server running Ubuntu Server 20.04.3, I use it to host a Docker Swarm, and a couple of KVM guests. Yesterday I rebooted it (as I've done many times before) and since then I've noticed ...
user avatar
0 votes
2 answers
2k views

Installing server with cloud-init script?

I just installed a (physical, bare metal) server with the new 21.10 server install image (in order to test and prepare for 22.04) on a usb pendrive. Worked, but I did not see an option to tell the ...
user avatar
  • 271
0 votes
1 answer
380 views

Terraform DataSource DataSourceNone with Ubuntu 20.04

Problem After building an Ubuntu 20.04 (also tried 21.04) template with Packer I'm unable to set new settings when instantiating the template with Terraform. This config had no issues with Debian 10. ...
user avatar
  • 101
0 votes
2 answers
1k 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, ...
user avatar
1 vote
1 answer
1k views

autoinstall/user-data's users section does not work at all?

I try to follow the instruction: https://stackoverflow.com/a/61868231/1492613 https://gist.github.com/leogallego/a614c61457ed22cb1d960b32de4a1b01#file-ubuntu-cloud-virtualbox-sh-L46-L56 autoinstall: ...
user avatar
  • 391
0 votes
1 answer
521 views

ubuntu-server 20.04 automatically generated user-data does not work in autoinstall

According to the ubuntu manual, the automatically generated autoinstall-user-data will just work. However, when I try to use it to seed the server, it report shcema error: Is this file actually non-...
user avatar
  • 391
1 vote
1 answer
661 views

Can't run autoinstall with ubuntu server 20.04

Good morning, I have a problem with starting up autoinstall while booting Ubuntu Server 20.04 ISO. I have already read all documentation and couple internet manuals but I'm not able to make Ubuntu ...
user avatar
  • 11
1 vote
0 answers
1k 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 dont have any "late-commands", but the installer hangs at "executing late commands". installer screenshot full ...
user avatar
  • 11
3 votes
1 answer
828 views

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 ...
user avatar
  • 31
1 vote
1 answer
435 views

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?
user avatar
2 votes
3 answers
786 views

How to use ssh_import_id with cloud-init on Raspberry Pi 4 /w Ubuntu 20.04 Server?

I'm looking to automatically setup up my SSH keys on a fresh Ubuntu Server 20.04 install on a Raspberry Pi 4 - mostly as a learning exercise. I'm trying to use the ssh_import_id option of cloud-init ...
user avatar
  • 21
0 votes
0 answers
67 views

Need help with autoinstaller/cloud init

I am trying to pxe boot Ubuntu with cobbler using cloud-init. I already have the auto-install-user file. But I can't get around the missing CD-ROM error message. I can provide screenshots of what I'...
user avatar
1 vote
0 answers
697 views

Issues autoinstalling Ubuntu 20.04

I'm trying to make an automated installation of Kubuntu 20.04 with a PXE-Server. First using an ubuntu20.04-live-server image and the adding de kubuntu-desktop package. The thing is that I got lost at ...
user avatar
  • 11
2 votes
0 answers
407 views

cloud-image passes default hostname to dhcp server despite cloud-init script

How do I get the Ubuntu 20.04 Cloud Image to send an individual hostname along with its initial dhcp request? I am deploying Ubuntu 20.04 Cloud Images on vSphere using Nutanix Calm and a cloud-init ...
user avatar
2 votes
1 answer
2k views

Combine cloud-init autoinstall with other cloud-init modules

I'm trying to provision a VM with cloud-init and the server live image. (I'm not using the cloud image, for infrastructural reasons I have to install from ISOs) However, whenever I'm trying to combine ...
user avatar
  • 193
1 vote
0 answers
85 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 ...
user avatar
0 votes
1 answer
127 views

How to use custom Origin values in for internal repositories in Ubuntu 20.04 autoinstall?

OK, just working my way through integrating with autoinstall / cloud-init and finding all the incorrect ways that don't work. :-) Looking at the following documents: https://ubuntu.com/server/docs/...
user avatar
2 votes
1 answer
391 views

How to set the SSH key of the root user during an automated 20.04 server install?

I'm trying to write an SSH key to /root/.ssh/authorized_keys during an automated 20.04 server install, but it fails, probably because of permission problems. The 1st command is successful, the 2nd ...
user avatar
2 votes
3 answers
3k views

Ubuntu 20.04 server blocks at boot cloud-init and login

I am trying to install Ubuntu 20.10 on my raspberry Pi 4 8Gb RAM using a 16 Gb SD card. I have followed this tutorial exactly. I have tried to install it using wlan0 or eth0 by modifying the network-...
user avatar
0 votes
0 answers
270 views

20.04.2. Running basic commands like copy and executing shell scripts using runcmd of cloud-init file

#cloud-config autoinstall: apt: geoip: true preserve_sources_list: false primary: - arches: [amd64, i386] uri: http://us.archive.ubuntu.com/ubuntu - arches: [default] ...
user avatar