Skip to main content

Questions tagged [cloud-init]

**cloud-init** is a tool that handles initialization and configuration of cloud instances. It is installed in many Cloud Images used on major clouds and supports various Linux distributions (as well as a couple of the BSDs). Some higher level tools, such as Terraform, use it.

1 vote
1 answer
90 views

cloud-init tailscale setup fails due to missing /dev/net/tun

I want to provision a VM in proxmox with cloud-init, such that tailscale will be set up and running on first boot. The image I use is alpine 3.22.1 (nocloud_alpine-3.22.1-x86_64-uefi-cloudinit-r0....
lutz108's user avatar
  • 23
1 vote
0 answers
176 views

Debian 12 cloud image won't let me ssh unless first boot already has NIC available

I have a little script that automates setting up a local VM. Basically when I want to create a VM it sets up some cloud-init configuration, boots the guest once initially for setup (with a "cdrom&...
natevw's user avatar
  • 194
1 vote
1 answer
152 views

ubuntu-live-server installation through PXE user-data config error

I am trying to install Ubuntu live server. Everything works fine till the system requests the cloud-init configs. I have tried to change my user-data file several times. Ether it throughs an error &...
AdkhamSec's user avatar
0 votes
1 answer
647 views

Debian 12 Cloud Image Deployment Issue - Growpart can not find grep and other basic utilities

I created a tutorial quite a while ago for easily deploying Debian 12 from the provided qcow2 images that are provided here: https://cloud.debian.org/images/cloud/bookworm/latest/. Unfortunately, I ...
Programster's user avatar
  • 2,289
0 votes
0 answers
44 views

Automate Linux installation

For cloud environments, there is Cloudinit. I would like to know if there is something similar for desktop systems. Context: I want to create a kiosk with Chromium pre-installed and running through ...
Skhaz's user avatar
  • 103
2 votes
0 answers
2k views

partitionning additional disks as LVM with cloud-init

I'm using terraform and cloud-init to setup new VMs. I want to have additional disks setup and mounted in the new VM, with XFS partitions on top of LVM. Right now the only way I've found that allows ...
Edzilla's user avatar
  • 21
0 votes
0 answers
197 views

Stopping parameter expansion in write_file content of cloud-init userdata

Background I'm using Terraform and cloud-init to provision an Ubuntu VM. The Terraform template contains an embedded cloud-init user_data section that contains a write_file directive to write a bash ...
McKenzieCarr's user avatar
2 votes
2 answers
2k views

cloudinit does not run for qemu/kvm systems created by terraform and libvirt provider

I'm trying to provision a VM on qemu/kvm hypervisor using cloudinit with terraform and the libvirt provider. I can get the machine to start, but the cloudinit is not getting kicked off. I know that ...
Jonathan Heady's user avatar
0 votes
1 answer
391 views

Change password first Log In sudo su with Cloud-init

I'm trying to implement this rule with cloud init but I can't, I would like the user to have a password entered by me but as soon as he executes the sudo su command, the system forces the user to ...
ada-devops's user avatar
1 vote
1 answer
647 views

Is there an immutable KVM host OS?

My homelab environment is primarily git repo->puppet apply->centos7 hardware running kvm or guests. Simple tooling but it works. I'm doing a lot more terraform at work these days and have been ...
alan laird's user avatar
2 votes
1 answer
233 views

secrets unintentionally printed to cloud-init logs

The two lines of bash code below pull a secret into a cloud-init script for an Azure VM running RHEL8. But each of the two lines has an unintended side effect of printing the secret into the cloud-...
CodeMed's user avatar
  • 5,377
0 votes
0 answers
833 views

Cloud-Init boot takes One Hour+ to start

Hello Everyone, I am looking to understand what process is running that halting the boot up of our ubuntu VM's that was originally configured with cloud-init. The after the entries paint in the ...
Josh's user avatar
  • 1
2 votes
1 answer
6k views

cloud-init does not work for Ubuntu 22.04 images

I'm testing cloud-init for Ubuntu 22.04 images, So I first downloaded the cloud image from: https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img Then I create ...
daisy's user avatar
  • 55.9k
0 votes
1 answer
91 views

cloud-init: Getting the error: No such function check

I have this configuration, disk_setup: /dev/vdb: table_type: gpt, layout: true fs_setup: - label: repo filesystem: ext4 device: /dev/vdb1 partition: auto This is the error I get, ...
Evan Carroll's user avatar
  • 35.1k
2 votes
0 answers
810 views

Can't boot arm64 cloud image with qemu

I first downloaded ubuntu-22.04-server-cloudimg-arm64.img, then I started it with qemu qemu-system-aarch64 -m 2G -M virt -cpu max -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -drive if=none,file=...
daisy's user avatar
  • 55.9k

15 30 50 per page